How can I restart a Node.js app from within itself (programmatically)?

后端 未结 5 2305
余生分开走
余生分开走 2020-12-15 06:14

How can I create an app that can restart itself? I want to create an app that sets up a web-admin which can restart itself. Is this possible? If so, how? I was thinking this

5条回答
  •  情歌与酒
    2020-12-15 06:28

    I have run Forever several times and it is easy to get started with. Check it out at: https://github.com/nodejitsu/forever

提交回复
热议问题