Answer the question
In order to leave comments, you need to log in
How to run a node app forever?
Good evening.
I installed ghost node app. It is launched with the command npm start
.
This opens the node terminal, exiting which shuts down Ghost. If you close the SSH connection to the server, the application also crashes.
How can I run it without shutting down?
Answer the question
In order to leave comments, you need to log in
They advise some crap ...
That solves all the problems https://github.com/Unitech/pm2
npm start 2>&1 > /tmp/logfile &
but in general look towards supervisord
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question