Option 1

nohup npm start --production &

For this variant you need a valid package.json file. It contains the information needed for npm to start your application correctly.

 

Option 2

nohup node my_app.js &

nohup is required for your application to run even after you close the SSH terminal.

Was this answer helpful? 0 Users Found This Useful (0 Votes)