Wednesday, 3 May 2017

Node app restarts and crashes every time

I have a node app on my server, it has been running fine until I edited my node app script(myapp.js) and I restarted it. From then, it started to restart and crash. This is what I can see in my log: "..../myapp.js had too many unstable restarts (16). Stopped. "errored"

This problem normally happens anytime I restart my node app. I have tried my best to no avail.

I am using node v7.9.0, npm 4.2.0 and running the app in background with pm2 2.4.5.

What is the usual cause of this problem and how can I resolve it?

Is there any way I can make node app restart automatically when the script is edited?

Thanks in advance!



via Promise Chukwudum

No comments:

Post a Comment