nodejs forever : How to run my npm application

前端 未结 3 545
天涯浪人
天涯浪人 2021-02-07 11:34

Right now i am runnign my nodejs application as npm start. i want to run it in background. I found forever package for this but dont know how can i run

3条回答
  •  旧时难觅i
    2021-02-07 11:40

    In 2020

    Use forever npm package ( https://www.npmjs.com/package/forever )

    forever start -c "npm " /path/to/app/dir/

    EXAMPLE

    ./ means current directory

    forever start -c "npm start" ./

提交回复
热议问题