Velvet Star Monitor

Standout celebrity highlights with iconic style.

updates

How to run nodemon + forever in the background

Writer Andrew Mclaughlin

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!

2

1 Answer

Try using pm2 pm2 guides

With pm2 your application runs in the background and:-

  • Can auto-start on server reboots

  • You can even set pm2 to watch for file changes and reload your application

  • You can monitor your application and see resource utilization

  • You can view logs

  • You can run your application in cluster and load-balance requests using pm2

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy