This terminal command restarts my heroku application:
heroku restart
Is there a way to run a script that will run this command and restart
As far as I can tell, simply running heroku ps:restart --app APPNAME in the Heroku Scheduler add-on works fine. It's unclear to me why the additional steps in other answers are necessary.
heroku ps:restart --app APPNAME