Better Node.js monitoring and clustering with PM2
Replace Forever with PM2, and access some very nice features:
npm install pm2 -g
Multiple instances for multi-core CPUs
pm2 start app.js -i 4 --name servername
Monitor processes (GUI)
pm2 monit
Hot reload
pm2 reload all
Linux startup script generator
pm2 startup
Log aggregation
pm2 logs
Run CoffeeScript
pm2 start my_app.coffee
Written by Marius Stuparu
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Nodejs
Authors
Did you know?
JavaScript on a page runs with the privileges of that origin. One altered library, tag manager, or snippet can read inputs, change what people see, and call your APIs as the user.
Security insights from Cside
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#