admin管理员组文章数量:1327102
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!
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!
Share Improve this question edited Jun 2, 2020 at 19:24 Axel León asked Jun 2, 2020 at 15:57 Axel LeónAxel León 4761 gold badge7 silver badges21 bronze badges 2- try running them as bacground process – jaibalaji Commented Jun 2, 2020 at 16:53
- The question is how – Axel León Commented Jun 2, 2020 at 19:25
1 Answer
Reset to default 5Try 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
本文标签: javascriptHow to run nodemonforever in the backgroundStack Overflow
版权声明:本文标题:javascript - How to run nodemon + forever in the background - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742205331a2432709.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论