Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Restart heroku dyno in nodejs

Tags:

I want to restart a nodejs app to change its ip. How would I do this within the app itself? I have tried forcing a crash however if the app crashes twice within ten minutes, then heroku will restart the dyno ten minutes after the first crash.

like image 418
user1660601 Avatar asked Sep 02 '14 08:09

user1660601


People also ask

Does heroku auto restart?

In addition to scheduled cycling, dynos are automatically restarted with every new code release, add-on change, or config vars change. They can also be restarted manually.

How do I turn off heroku dyno?

If you wish to stop a running one-off dyno, use heroku ps:stop with its name. A one-off dyno will not stop if you issue heroku ps:restart on your application.


1 Answers

If you have the Heroku CLI installed, you can run heroku restart in the folder of your application or run heroku restart --app application_name.

If you don't have it installed, you can find information about it here.

like image 94
gaelgillard Avatar answered Oct 27 '22 00:10

gaelgillard