Created
April 5, 2009 17:24
-
-
Save 7hunderbird/90489 to your computer and use it in GitHub Desktop.
deploy.rb
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 :deploy do | |
desc "Link the database.yml file into the current release path." | |
task :symlink_config do | |
run <<-CMD | |
cd #{latest_release} && | |
ln -nfs #{shared_path}/config/database.yml #{latest_release}/config/database.yml | |
CMD | |
end | |
end | |
# at the end of your deploy.rb file you call the symlink_config | |
after "deploy:update_code", "deploy:symlink_config" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment