Rake task for deploying to Heroku
Created at: 13.02.2010 02:39, source: Rail Spikes - Home , tagged: deployment heroku
Deploying to Heroku is pretty easy, but I’ve often found myself needing to do additional tasks after pushing to Heroku’s git repository. For example, if you have to migrate, you have to do that after pushing; and after migrating you have to restart the app server.
So here is a Rake task to automate that. It uses Heroku’s client library to find the git remotes you need to push to. Use it like this:
rake deploy # deploys to your default app for this directory
rake deploy APP=some-other-app # deploy to another app (e.g., a staging server)
