javascriptnode.jsnodemonforever

How to run nodemon + forever in the background


Good morning!

I need my node.js server running in the background. I just saw this answer: Forever + Nodemon running together

I understand the idea, and I think that it's great, but when I use

forever -c "nodemon --exitcrash" app.js

the nodemon console stills visible. How can I hide the console?

Thank you everyone!


Solution

  • Try using pm2 pm2 guides

    With pm2 your application runs in the background and:-