Can the pm2 node module restarts the app after crash automatically

后端 未结 4 1716
我寻月下人不归
我寻月下人不归 2021-02-06 23:06

I have a node app ready which is workable, but has known and unknown bugs which crashes the node app. In such cases it would be nice if pm2 can restart the node app. Is this fea

4条回答
  •  挽巷
    挽巷 (楼主)
    2021-02-06 23:39

    Yes, it does this by default and there is even a watch option to restart on changes.

提交回复
热议问题