Last active
January 4, 2016 20:50
-
-
Save eliotsykes/6fc16f428d4e6bb9b32d to your computer and use it in GitHub Desktop.
bin/deploy for rails+heroku app
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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