Skip to content

Instantly share code, notes, and snippets.

@StanBoyet
Created May 10, 2014 13:33
Show Gist options
  • Save StanBoyet/8c9ee5f1b6e3bd0638fd to your computer and use it in GitHub Desktop.
Save StanBoyet/8c9ee5f1b6e3bd0638fd to your computer and use it in GitHub Desktop.
Precompile assets for heroku deployment
#!/bin/bash
echo 'Script start'
read -p "Precompile & Push on Test ? (y/n)?"
[ "$REPLY" == "y" ] || RAILS_ENV=production bundle exec rake assets:precompile; git add public/assets; git commit -m "vendor compiled assets"; git push heroku-test master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment