N
N
nepster-web2015-08-22 13:54:18
Node.js
nepster-web, 2015-08-22 13:54:18

Node.js how to automatically raise after a fall?

I remember there was such a thing that raised a node if it fell off with an error. But unfortunately I was able to google supervisor and nodemon, but this is not quite right.
Can anyone tell me what this thread is called?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Alexey Sergey, 2015-08-22
@dev_random

https://www.npmjs.com/package/forever
or use the features of systemd, upstart, etc.

A
Alexander Prozorov, 2015-08-22
@Staltec

In addition to forever, also look at PM2 . This thing is even nicer in terms of visualizing statistics on running processes.

N
Nicholas, 2015-08-23
@ACCNCC

Use forever
forever start /var/websocket/App_Server.js
forever restart /var/websocket/App_Server.js
forever stop /var/websocket/App_Server.js

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question