0

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.

1
  • Would this be better posted on Server Fault? Maybe. Commented Oct 5, 2016 at 23:51

2 Answers 2

1

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.

Sign up to request clarification or add additional context in comments.

Comments

0

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

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.