Saturday, December 19, 2020

tool: pm2: process manager for node.js

pm2 logo

pm2 - npm

PM2 is a production process manager for Node.js applications with a built-in load balancer. It allows you to keep applications alive forever, to reload them without downtime and to facilitate common system admin tasks.

npm install pm2 -g
pm2 start app.js

alternative tool: nodemon

Nodemon tends to be best for development. 
PM2 is by far the most comprehensive and tends to be best suited for production concerns.

No comments: