Created
March 5, 2011 09:44
-
-
Save Spaceghost/856263 to your computer and use it in GitHub Desktop.
cap deploy:configs
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
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