Skip to content

Instantly share code, notes, and snippets.

@7hunderbird
Created April 5, 2009 17:24
Show Gist options
  • Save 7hunderbird/90489 to your computer and use it in GitHub Desktop.
Save 7hunderbird/90489 to your computer and use it in GitHub Desktop.
deploy.rb
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