Top "Pm2" questions

PM2 is a CLI process manager for Node.

Can pm2 run an 'npm start' script

Is there a way for pm2 to run an npm start script or do you just have to run pm2 …

node.js shell npm pm2
mongoError: Topology was destroyed

I have a REST service built in node.js with Restify and Mongoose and a mongoDB with a collection with …

node.js mongodb mongoose restify pm2
How to pass arguments to app using pm2?

I am using pm2 to start my app but i am not able to pass argument to it. the command …

node.js express forever pm2
Cluster and Fork mode difference in PM2

I've searched a lot to figure out this question, but I didn't get clear explanation. Is there only one difference …

node.js pm2
Make pm2 log to console

I am running a node webserver using pm2. Since pm2 spawns another process and redirects stdout and stderr to files, …

node.js pm2
How to specify a port number for pm2

I'm trying to use pm2 to manage a node.js cluster pm2 start . -i 3 I'm currently running the app on …

node.js heroku pm2
How to kill the pm2 --no-daemon process

I'm using pm2 as the process manager of Node.js. In many cases, I think I will run it as …

node.js daemon pm2 process-management
How to add dates to pm2 error logs?

Is there a way to add timestamps to error logs in .pm2/logs? I noticed that pm2 logs command shows …

node.js pm2
Use sudo inside Dockerfile (Alpine)

I have this Dockerfile ... FROM keymetrics/pm2:latest-alpine RUN apk update && \ apk upgrade && \ apk add \ bash …

linux docker docker-compose dockerfile pm2
How can I check if my pm2 app NODE_ENV is getting set?

So I just deployed a site with node and pm2 for the first time and I'm going back and doing …

node.js express pm2