AWS Elastic Beanstalk:如何更改节点命令?在最近的更新中删除了容器选项?

AWS Elastic Beanstalk : How to change node command ? Container Options removed in recent update?

我最近在 Elastic Beanstalk 上部署了一个 node.js 应用程序,它为我提供了容器选项,以便我可以在启动时将命令更改为 运行。

但在最近的更新中,我想他们已经删除了这个选项,现在我该如何配置我的启动命令?

AWS 最近更改了流程。现在您必须上传包含所有申请文件的 ProcfileHeroku 中也存在相同的方法。

Procfile的内容应该是:

web: node index.js(即为您的应用程序指定节点命令为 运行)

官方文档:https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/create_deploy_nodejs.container.html