Rake tasks to manage an Heroku Application
Add this line to your application's Gemfile:
gem 'heroku_rake_tasks'
And then execute:
$ bundle
Or install it yourself as:
$ gem install heroku_rake_tasks
rake h:config # Display the application env vars
rake h:console # Start a Rails console
rake h:db:dump # Dump the remote database and download it to ./remote.dump
rake h:db:get # Download the latest remote database capture to ./remote.dump
rake h:db:restore # Restore the local database from ./remote.dump
rake h:db:sync # Sync the remote database with the local one
rake h:dbconsole # Start a DB console
rake h:deploy # Deploy the application
rake h:deploy:commits # Show the deployment-pending commits log
rake h:deploy:diff # Show the deployment-pending source code changes
rake h:deploy:migrate # Deploy the application and run the migration(s)
rake h:logs # Display recent log output for the application
rake h:logs:tail # Tail the logs for the application
rake h:ps # List the application dynos
rake h:restart # Restart the application
rake h:psql # Start a PostgreSql console
rake h:config production
If no remote is defined, the "heroku" remote used will be used by default
rake h:config # same as rake h:config heroku
If a "staging" remote is found, it will be used over "heroku".
rake h:config # same as rake h:config staging, if a staging remote is found
rake h:config p # production remote
rake h:config s # staging remote
- Fork it ( https://github.com/[my-github-username]/heroku_rake_tasks/fork )
- 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 a new Pull Request