Skip to content

Instantly share code, notes, and snippets.

@fermion
Forked from technicalpickles/deploy.rb
Created August 28, 2009 19:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fermion/177179 to your computer and use it in GitHub Desktop.
Save fermion/177179 to your computer and use it in GitHub Desktop.
namespace :db do
task :pull do
run "cd #{current_release} && RAILS_ENV=#{rails_env} rake db:data:dump"
download "#{current_release}/db/data.yml", "db/data.yml"
`rake db:reset db:data:load`
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment