how to restart node application automatically on aws elastic-beanstalk

前端 未结 6 964
后悔当初
后悔当初 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:11

    Yes it does. I know because after ssh'ing in to the box i did:

    sudo pkill node
    

    And then I can verify that:

    1. the app continues to work from the browser
    2. It prints restarting to logs visible via: sudo tail /var/log/web.stdout.log -f
    3. A new node process with new process id takes its place visible via: pgrep node

提交回复
热议问题