A heroku plugin for enterprise deployment rails applications
$ heroku plugins:install git://github.com/cloudcastle/heroku-rails-deploy.git
$ heroku plugins:update git://github.com/cloudcastle/heroku-rails-deploy.git
Enterprise Deployment includes:
- Checking new database migrations
- ** Running database backup (if new migrations exist)
- ** Enabling maintenance (if new migrations exist)
- Git push
- ** Running migrations (if exist)
- ** Disabling maintenance (if new migrations exist)
** steps are optional
$ heroku deploy --app HEROKU_APP
...
deploy current branch to HEROKU_APP
$ heroku deploy -f --app HEROKU_APP
...
deploy current branch to HEROKU_APP using git push --force
$ heroku deploy -m --app HEROKU_APP
...
auto-confirm running migration (full deploy)