Last active
December 12, 2015 02:28
-
-
Save bobbyno/4698471 to your computer and use it in GitHub Desktop.
Workarounds for compilation errors in the Heroku asset pipeline
This file contains hidden or 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
#!/usr/bin/env bash | |
printf "Precompiling assets..." | |
rake assets:precompile | |
printf "\nCommitting assets to git..." | |
git add public/assets/ | |
git commit -am "Update asset pipeline" | |
printf "\nDeploying to Heroku..." | |
git push heroku | |
printf "\nRemoving assets..." | |
rm -rf public/assets | |
git commit -am "Remove asset pipeline..." | |
printf "\nPushing changes..." | |
git push origin | |
printf "\n" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Or you can do this: