Skip to content

Instantly share code, notes, and snippets.

@tbuser
Forked from technicalpickles/deploy.rb
Created August 28, 2009 16:11
Show Gist options
  • Save tbuser/177071 to your computer and use it in GitHub Desktop.
Save tbuser/177071 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