简体   繁体   中英

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

I had deployed a node.js application on Elastic Beanstalk recently and it gave me container options so that I could change the command to be run on startup.

在此处输入图像描述

But in the recent update I suppose they've removed this option, now how do I configure my on-startup command?

在此处输入图像描述

AWS has changed the process recently. Now you have to upload a Procfile with all your application files. The same approach exists in Heroku as well.

The content of Procfile should be:

web: node index.js (ie specify the node command to be run for your application)

Official Documentation: https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/create_deploy_nodejs.container.html

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM