#!/bin/bash # clear the screen (can still scroll up) clear # show "check back in a few minutes" message heroku maintenance:on -a HEROKU_APP_NAME # push to heroku staging git remote git push HEROKU_APP_NAME master # run any db migrations on live heroku run rake db:migrate -a HEROKU_APP_NAME # allow visitors again heroku maintenance:off -a HEROKU_APP_NAME