parse-dashboard icon indicating copy to clipboard operation
parse-dashboard copied to clipboard

parse-dashboard server as a background service

Open json-park opened this issue 10 years ago • 1 comments

Hello.

I start parse-dashboard on AWS Linux AMI

default

However It is stop when close a commend window

I want my parse-dashboard server to run in the background

How can i do?

json-park avatar Apr 04 '16 11:04 json-park

you can use:

  1. nohup (to prevent the script from exiting),
  2. an upstart script (in /etc/init.d so your server starts at startup),
  3. a process manager (pm2, forever, nodemon, so the server restarts on crashes)

I suggest a combination of 2 and 3.

further reading:

http://stackoverflow.com/questions/13982257/upstart-script-for-node-js-app https://gist.github.com/steveneaston/58a33e6cc280ca07f4c5 https://www.exratione.com/2013/02/nodejs-and-forever-as-a-service-simple-upstart-and-init-scripts-for-ubuntu/

flovilmart avatar Apr 04 '16 11:04 flovilmart