Skip to content

Latest commit

 

History

History
29 lines (19 loc) · 1.04 KB

README.md

File metadata and controls

29 lines (19 loc) · 1.04 KB

Rake Tasks

This repo is a collection of standard rake tasks I pull down for most projects.

deploy.rake

These tasks make deploying to Heroku easier:

rake deploy            # Alias for deploy:staging
rake deploy:staging    # Push master to staging remote, plus migrate
rake deploy:production # Push master to production remote, plus migrate

pg_sync.rake

These tasks make moving data around Heroku apps easier. If you use Postgres locally, you can use them to even pull down data locally.

rake pg_sync:production_to_local   # Capture a backup of production and restore to your local database
rake pg_sync:production_to_staging # Capture a backup of production and restore to your staging database
rake pg_sync:staging_to_local      # Capture a backup of staging and restore to your local database

rspec.rake

Since installing Rspec doesn't make you a nice Rake task like Cucumber does, I've been carrying this task around on projects. All it does is run all your specs:

rake spec # Run all specs