0

I want to restart automatically when it get errors.

Currently one worker running but when i get error i need to restart the dyno.

2 Answers2

0

You could try running the app with forever js

Kilizo
  • 3,192
  • 4
  • 19
  • 20
0

Heroku restart your app just one time during a period. If the dyno crashes again, it will be subject to a cool-off period before a restart is attempted.

Documentation: Dyno crash restart policy of Heroku

If you want to restart your dyno automatically I can suggest you to add an add-on call "Logentries". Then in Logentries create an alert which will be trigger when a crash append (H10 code Heroku). On Logentries you can set a webhook for this alert. And then you can create an another app for restart your app with Heroku API when this webhook is triggered.

Zagonine
  • 2,213
  • 3
  • 22
  • 29