小编Luk*_*ger的帖子

未知或重复参数:NodeCommand

我正在尝试使用 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)

amazon-web-services amazon-elastic-beanstalk

16
推荐指数
2
解决办法
6067
查看次数