stop the build heroku code example
Example 1: how to stop build in heroku
heroku plugins:install heroku-builds
heroku builds:cancel -a YOUR_HEROKU_APP_NAME
Example 2: 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