Restart my heroku application automatically

后端 未结 7 1562
北海茫月
北海茫月 2020-12-13 08:01

This terminal command restarts my heroku application:

heroku restart

Is there a way to run a script that will run this command and restart

7条回答
  •  庸人自扰
    2020-12-13 08:50

    You could create a heroku cron job that uses the Heroku api on your application to restart itself...

    One question though - why?

提交回复
热议问题