Skip to content

Instantly share code, notes, and snippets.

@Spaceghost
Created March 5, 2011 09:44
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 Spaceghost/856263 to your computer and use it in GitHub Desktop.
Save Spaceghost/856263 to your computer and use it in GitHub Desktop.
cap deploy:configs
desc "Sync the config directory."
task :configs do
run " if [ -d "#{shared_path}/config" ]; then mkdir -pv #{shared_path}/config; fi"
system "rsync -v config/database.yml #{user}@#{domain}:#{shared_path}/config/database.yml"
run "ln -nfs #{shared_path}/config/database.yml #{release_path}/config/"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment