Skip to content

Instantly share code, notes, and snippets.

@cjohansen
Created September 21, 2009 18:06
Show Gist options
  • Save cjohansen/190414 to your computer and use it in GitHub Desktop.
Save cjohansen/190414 to your computer and use it in GitHub Desktop.
task :copy_database_yml, :roles => :app do
db_config = "/var/www/site/conf/database.yml"
run "cp #{db_config} #{release_path}/config/database.yml"
end
after "deploy:update_code", :copy_database_yml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment