how to restart node application automatically on aws elastic-beanstalk

前端 未结 6 967
后悔当初
后悔当初 2021-02-01 19:34

I have googled this question for a while but can\'t find the answer. My question is while deploying the nodejs application on aws elastic-beanstalk servers, I want the nodejs ap

6条回答
  •  走了就别回头了
    2021-02-01 20:27

    Add forever to your package.json so it gets installed automatically. Then in EB console, under configuration, custom node command:

    node_modules/.bin/forever app.js
    

提交回复
热议问题