Saturday, May 25, 2024
 Popular · Latest · Hot · Upcoming
83
rated 0 times [  89] [ 6]  / answers: 1 / hits: 6633  / 4 Years ago, tue, june 2, 2020, 12:00:00

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!


More From » node.js

 Answers
4

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


[#3605] Saturday, May 30, 2020, 4 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
yaquelina

Total Points: 517
Total Questions: 101
Total Answers: 96

Location: Egypt
Member since Tue, Jul 6, 2021
3 Years ago
;