Skip to content Skip to sidebar Skip to footer

Is PM2 Meant To Be Used During Development Process?

I'm starting with Node.js world and I noticed that node process doesn't restart automatically. Searching around I found that nodemon can do that work but I also found that PM2 is a

Solution 1:

A node process should not restart unless told to do so. You can use PM2 for development with the watch feature - similar results to nodemon. I recommend PM2 if you want to pass in a bunch of environment variables from your PM2 ecosystem.config.js file. Otherwise, I’d use nodemon as @AKX said.


Solution 2:


Post a Comment for "Is PM2 Meant To Be Used During Development Process?"