How to run node.js app forever when console is closed?

前端 未结 12 631
遇见更好的自我
遇见更好的自我 2020-12-12 09:38

I connect to my remote server via ssh. Then I start my node.js app with Forever. Everything works fine until I close my console window. How to run node.js app FOREVER on my

12条回答
  •  萌比男神i
    2020-12-12 09:52

    If you're running node.js in a production environment, you should consider using PM2, forever.js, or Nodemon.

    There is no shortage of articles online comparing the different packages.

提交回复
热议问题