Deployment using PM2

suggest change

PM2 is a production process manager for Node.js applications, that allows you to keep applications alive forever and reload them without downtime. PM2 also enables you to manage application logging, monitoring, and clustering.

Install pm2 globally.

npm install -g pm2

Then, run the node.js app using PM2.

pm2 start server.js --name "my-app"

Following commands are useful while working with PM2.

List all running processes:

pm2 list

Stop an app:

pm2 stop my-app

Restart an app:

pm2 restart my-app

To view detailed information about an app:

pm2 show my-app

To remove an app from PM2’s registry:

pm2 delete my-app

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:


Deploying Node.js applications in production:
* Deployment using PM2

Table Of Contents
1 npm
22 Deploying Node.js applications in production
41 cli
43 grunt
59 Hack
64 ES6
67 Redis
69 MongoDB
86 MongoDB
87 Lodash
91 CORS
105 N-API
108 Require