PM2 lets you run your nodejs scripts forever. In the event that your application crashes, PM2 will also restart it for you.
Install PM2 globally to manager your nodejs instances
npm install pm2 -g
Navigate to the directory in which your nodejs script resides and run the following command each t...