Skip to content

Instantly share code, notes, and snippets.

@BlakeWilliams
Last active December 17, 2015 11:49
Show Gist options
  • Select an option

  • Save BlakeWilliams/5605173 to your computer and use it in GitHub Desktop.

Select an option

Save BlakeWilliams/5605173 to your computer and use it in GitHub Desktop.
namespace :deploy do
task :symlink_config, roles: :app do
run "rm #{release_path}/config/database.yml"
run "ln -nfs #{shared_path}/config/database.yml #{release_path}/config/database.yml"
end
after "deploy:finalize_update", "deploy:symlink_config"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment