Created
August 28, 2009 04:57
-
-
Save technicalpickles/176792 to your computer and use it in GitHub Desktop.
Capistrano recipe for using yaml_db to pull data into local database
This file contains 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
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
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