最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

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

programmeradmin1浏览0评论

I had deployed a node.js application on Elastic Beanstalk recently and it gave me container options so that I could change the mand 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 mand?

I had deployed a node.js application on Elastic Beanstalk recently and it gave me container options so that I could change the mand 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 mand?

Share Improve this question edited May 9, 2020 at 13:03 Sagar Kulkarni asked May 8, 2020 at 8:31 Sagar KulkarniSagar Kulkarni 5036 silver badges16 bronze badges 4
  • For single instance container, just specify it in Dockerfile. For ecs docker, you have Dockerrun.aws.json file. – Marcin Commented May 8, 2020 at 8:33
  • Very sorry , I'm new to elastic beanstalk please provide detailed steps! – Sagar Kulkarni Commented May 8, 2020 at 9:39
  • Its too generic to describe it. What I can remend is, to try doing it yourself based on aws docs, and then make new question with more specific issues. – Marcin Commented May 8, 2020 at 10:55
  • Okay....sure ! I will do that and get back – Sagar Kulkarni Commented May 8, 2020 at 11:42
Add a ment  | 

1 Answer 1

Reset to default 10

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 mand to be run for your application)

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

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论