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.

Cette réponse était-elle pertinente? 0 Utilisateurs l'ont trouvée utile (0 Votes)