Skip to content

Instantly share code, notes, and snippets.

@eliotsykes
Last active January 4, 2016 20:50
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eliotsykes/6fc16f428d4e6bb9b32d to your computer and use it in GitHub Desktop.
Save eliotsykes/6fc16f428d4e6bb9b32d to your computer and use it in GitHub Desktop.
bin/deploy for rails+heroku app
#!/bin/sh
# Create this file in the bin/ directory of your
# Rails app.
# Run this script to deploy the app to Heroku.
set -e
# Push changes to Heroku
git push heroku master
# Run the database migrations
heroku run rake db:migrate
# Restart app to use database changes
heroku restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment