Heroploy
A few helpful rake tasks to manage deploying Rails apps to development, staging and production Heroku servers.
Installation
Add this line to your application's Gemfile:
gem 'heroploy'
And then execute:
$ bundle
Or install it yourself as:
$ gem install heroploy
Usage
Add a heroploy.yml file to your application's config directory which describes the Heroku apps you will deploy to, and the checks you would like when deploying to each.
For example:
environments:
development:
heroku: my-development-app
staging:
heroku: my-staging-app
checks:
pushed: true
branch: master
production:
heroku: my-production-app
tag: 'RELEASE_%Y%m%dT%H%M%S%z'
checks:
pushed: true
branch: master
staged: true
This file:
- Describes
development,stagingandproductiondeployment rules for three Heroku apps (namedmy-development-app,my-staging-appandmy-production-appon Heroku). - Allows any branch to be pushed directly to
development. - Only allows
masterto be pushed tostaging, and requires all changes to have first been pushed toorigin. - Only allows deployment to
productionif the changes have first been staged onstaging.
To deploy to one of these environments, run rake heroploy:<environment>:deploy. For example:
rake heroploy:production:deploy
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create new Pull Request


