[nodejs] start node js server at debian start up

2018-03-14 Thread Sameer Joshi
Hi Raphael, You can use 'pm2' (https://www.npmjs.com/package/pm2) to manage your node processes. 1. Start the node applications from pm2 instead of vanilla node pm2 start server.js --name=someName 2. Use the startup command (http://pm2.keymetrics.io/docs/usage/startup/) to create a startup

[nodejs] start node js server at debian start up

2018-03-05 Thread Raphael AWATE
Hello, I need help to make node js server starting at the server start up. my server.js is at the localion /home/adminuser/ergo/server.js but I normally need to run "node server.js" inside the /home/adminuser/ergo/ folder to have it work. i have spent hours trying various solutions on the