Skip to content

Instantly share code, notes, and snippets.

@dogweather
Created November 2, 2012 03:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dogweather/3998492 to your computer and use it in GitHub Desktop.
Save dogweather/3998492 to your computer and use it in GitHub Desktop.
Making Heroku deploy a one-liner
# Heroku Convenience Aliases
alias precompile='rake assets:precompile; git add -f public/assets/manifest.yml; git commit -m manifest'
alias migrate='heroku run rake db:migrate'
alias clear_cache='heroku run rake cache:clear'
alias deploy='precompile; git push heroku master; migrate; clear_cache'
@dogweather
Copy link
Author

Capistrano is the "right" tool for this, but I know shell aliases much better.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment