heroku stop code example
Example: 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
$ heroku ps:scale web=0
Scaling web processes... done, now running 0
//once ready to go back online:
heroku ps:scale web=1