A
A
Alexander Bagirov2015-01-05 18:40:09
Node.js
Alexander Bagirov, 2015-01-05 18:40:09

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

2 answer(s)
E
Eugene, 2015-01-05
@alexbagirov

They advise some crap ...
That solves all the problems https://github.com/Unitech/pm2

Y
Yuri Shikanov, 2015-01-05
@dizballanze

npm start 2>&1 > /tmp/logfile &
but in general look towards supervisord

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question