Ad

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.

enter image description here

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

enter image description here

Ad

Answer

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 (i.e 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

Ad
source: stackoverflow.com
Ad