Saturday, May 16, 2020

Start npm start in background

If nohup is giving error to start npm, here is another way to start the npm in the background.

First install forever globally.
npm install -g forever
cd into the project
cd /project/path/
Run forever command.
forever start -c "npm start" ./

No comments:

Post a Comment