Skip to content

Instantly share code, notes, and snippets.

@johnbeynon
Created March 3, 2014 11:06
Show Gist options
  • Save johnbeynon/9322859 to your computer and use it in GitHub Desktop.
Save johnbeynon/9322859 to your computer and use it in GitHub Desktop.
before_deploy.sh
#!/usr/bin/env bash
set -e
echo "Running post Heroku deployment script"
echo "Installing Heroku toolbelt"
wget -qO- https://toolbelt.heroku.com/install-ubuntu.sh | sh
# You need to bundle if you want to be able to enabled maintenance mode.
# bundle
# gem install heroku_san # Need to ensure heroku_san is available
# Enable maintenance mode if required
# bundle exec rake staging heroku:maintenance
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment