在AWS Elastic Beanstalk上部署“ dotnet new reactredux”应用程序

时间:2018-09-21 14:26:45

标签: amazon-ec2 .net-core react-redux single-page-application amazon-elastic-beanstalk

我正在尝试在AWS Elastic Beanstalk上部署.net核心SDK模板“ reactredux”。

我已经在服务器上手动安装了nodejs,但是无论如何我还是有错误:

An unhandled exception occurred while processing the request.
AggregateException: One or more errors occurred. (One or more errors occurred. (The NPM script 'start' exited without indicating that the create-react-app server was listening for requests. The error output was: ))
System.Threading.Tasks.Task<TResult>.GetResultCore(bool waitCompletionNotification)

InvalidOperationException: The NPM script 'start' exited without indicating that the create-react-app server was listening for requests. The error output was:
Microsoft.AspNetCore.SpaServices.ReactDevelopmentServer.ReactDevelopmentServerMiddleware.StartCreateReactAppServerAsync(string sourcePath, string npmScriptName, ILogger logger)

EC2是Windows。 .net核心2.1 它可以在本地计算机上完美运行。

我根据本教程发布了应用程序:

https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/dotnet-core-tutorial.html#dotnet-core-tutorial-update

(我做了所有事情)

有什么建议吗?

0 个答案:

没有答案