heroku restart app code example
Example 1: heroku restart
heroku ps:restart web -a <my app name>
Example 2: heroku restart rails server
heroku restart -a app_name
# The -a is the same as --app
Example 3: how to stop a heroku app
$ heroku ps:scale web=0
Scaling web processes... done, now running 0
//once ready to go back online:
heroku ps:scale web=1
Example 4: kill dyno process heroku
$ heroku ps:stop run.1
Stopping run.1 process... done