Created
September 25, 2015 21:32
-
-
Save dcrec1/e4614cd2600b59174a24 to your computer and use it in GitHub Desktop.
Heroku deploy script
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
rake assets:precompile | |
if [[ $(git status | grep assets) ]] ; then | |
echo "Precompile assets!" | |
else | |
git push heroku master | |
heroku run rake db:migrate --app <app> | |
heroku restart --app <app> | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment