i'm using parse server and parse dashboard for my push notification and DB stuffs, my problem is when i establish an ssh connection to my VPS and run them both everything is fine until i turn off my computer or disconnect from the server dashboard and parse server will terminated! is there any solution to make them online permanently?
commands i use:
for starting the parse server ->
npm start
for starting the parse dashboard ->
parse-dashboard --config config.json --allowInsecureHTTP
even i tried to duplicate nodejs running but it doesn't work.
usually, whenever you exit your SSH session, your active session will be killed. Using screen command will create a session that will not be killed even you closed your terminal / exit SSH. And you can do exactly what you usually do.
described in this link: https://github.com/ParsePlatform/parse-dashboard/issues/162
enter screen at SSH session.some instruction and info will display, dismiss it with spacebar. here you go, a new screen that will remain running even you exit your SSH session.you might run the following command:
cd /var/www/parse/parse-dashboard npm start --config some/path/to/parse-dashboard-config.json --allowInsecureHTTP=1
thanks to @cricket_007