Can the pm2 node module restarts the app after crash automatically

Talespin_Kit picture Talespin_Kit · Oct 1, 2014 · Viewed 35.3k times · Source

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 feature already available in pm2 ?

Answer

jgillich picture jgillich · Oct 1, 2014

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