Created
June 18, 2009 18:08
-
-
Save pol/132072 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # | |
| # ############################################################# | |
| # # Rake | |
| # ############################################################# | |
| # | |
| namespace :rake do | |
| namespace :db do | |
| task :reset do | |
| run("cd #{deploy_to}/current; /usr/bin/rake db:reset RAILS_ENV=production") | |
| end | |
| task :migrate do | |
| run("cd #{deploy_to}/current; /usr/bin/rake db:migrate RAILS_ENV=production") | |
| end | |
| task :load_fixtures do | |
| run("cd #{deploy_to}/current; /usr/bin/rake db:fixtures:load RAILS_ENV=production") | |
| end | |
| task :create do | |
| run("cd #{deploy_to}/current; /usr/bin/rake db:create RAILS_ENV=production") | |
| end | |
| end | |
| task :install_gems do | |
| run("cd #{deploy_to}/current; /usr/bin/rake gems:install") | |
| end | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment