I am using forever js to keep my node server running 24/7 on AWS EC2.
I use this command
forever start index.js
However, I notice that
I'd suggest the usage of PM2
This is the best option to run on a production server.
What are the advantages of running your application this way?
/home/safeuser/.pm2/logs/app-err.log
.ref: https://www.digitalocean.com/community/tutorials/how-to-use-pm2-to-setup-a-node-js-production-environment-on-an-ubuntu-vps