Kasparas Zujus
Kasparas Zujus

Reputation: 1

How to automatically restart node server

how can I automatically restart my node js server every hour automatically. There is a bug that only shows up after 1 hours and I want to be able to run it through the night. I'm already using forever.

Upvotes: 0

Views: 267

Answers (2)

ippi
ippi

Reputation: 10167

I like pm2 for running my node apps but when it comes to keeping things alive then I rely on monit. But If it really crashes every hour then you are better off trying to fix that bug.

Upvotes: 1

saille
saille

Reputation: 9191

You could try forever. I've not used it myself, but seems to do what you want.

Upvotes: 0

Related Questions