Here is how to keep your node.js application running on shared hosting. It uses the pm2 process manager and crontab jobs to check and restart.