Skip to content

bencolon/heroku_rake_tasks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HerokuRakeTasks

Rake tasks to manage an Heroku Application

Gem Version Code Climate Dependency Status

Installation

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

Usage

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

With a remote

rake h:config production

Without a remote

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

Remote alias

rake h:config p                 # production remote
rake h:config s                 # staging remote

Contributing

  1. Fork it ( https://github.com/[my-github-username]/heroku_rake_tasks/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

About

Rake tasks to manage an Heroku Application

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages