我正在尝试使用 Elastic beanstalk 部署 Node.js API。
我想设置节点命令来启动应用程序。
这是我的 nodecommand.config:
option_settings:
aws:elasticbeanstalk:container:nodejs:
NodeCommand: "npm start"
Run Code Online (Sandbox Code Playgroud)
每当我尝试运行时eb deploy
,都会收到此错误:
2020-05-13 19:03:44 INFO Environment update is starting.
2020-05-13 19:03:48 ERROR "option_settings" in one of the configuration files failed validation. More details to follow.
2020-05-13 19:03:48 ERROR Unknown or duplicate parameter: NodeCommand
2020-05-13 19:03:48 ERROR Failed to deploy application.
ERROR: ServiceError - Failed to deploy application.
Run Code Online (Sandbox Code Playgroud)