Skip to content

Instantly share code, notes, and snippets.

@technicalpickles
Created August 28, 2009 04:57
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save technicalpickles/176792 to your computer and use it in GitHub Desktop.
Save technicalpickles/176792 to your computer and use it in GitHub Desktop.
Capistrano recipe for using yaml_db to pull data into local database
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
@cllns
Copy link

cllns commented Jan 12, 2015

This script was made for Capistrano version 2.

I forked this and updated it to work with version 3: https://gist.github.com/cllns/2fd509797fedfeb112e6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment