I
I
Ivan Kondratiev2016-04-16 20:53:09
Node.js
Ivan Kondratiev, 2016-04-16 20:53:09

How can nodejs server be automatically restarted after a crash?

I know that there is nodemon but it only restarts the server on changes.
How can nodejs server be automatically restarted after a crash?
Thanks

Answer the question

In order to leave comments, you need to log in

3 answer(s)
T
Timur Shemsedinov, 2016-04-16
@inik23

forever, pm2, impress, but you can’t abuse it, you need to try to write in such a way that failures are not a normal mode and processes live for months.

G
g00dv1n, 2016-04-16
@g00dv1n

I think with docker you can come up with something

A
Alastor, 2016-04-17
@Alastor

www.sitepoint.com/how-to-create-a-node-js-cluster-...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question