Skip to content

Instantly share code, notes, and snippets.

@pol
Created June 18, 2009 18:08
Show Gist options
  • Select an option

  • Save pol/132072 to your computer and use it in GitHub Desktop.

Select an option

Save pol/132072 to your computer and use it in GitHub Desktop.
#
# #############################################################
# # 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