Skip to content

Instantly share code, notes, and snippets.

@pbyrne
Created February 11, 2009 21:56
Show Gist options
  • Save pbyrne/62292 to your computer and use it in GitHub Desktop.
Save pbyrne/62292 to your computer and use it in GitHub Desktop.
namespace(:pb) do
desc "Symlink the databse config file from shared drectory to current release directory."
task :symlinks do
run "ln -nsf #{shared_path}/config/database.yml #{release_path}/config/database.yml"
run "ln -nsf #{shared_path}/config/initializers/site_keys.rb #{release_path}/config/initializers/site_keys.rb"
end
end
namespace(:deploy) do
desc "Tell Passenger to restart the server"
task :restart do
run "touch #{current_path}/tmp/restart.txt"
end
after 'deploy:update_code', 'pb:symlinks'
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment