Created
February 11, 2009 21:56
-
-
Save pbyrne/62292 to your computer and use it in GitHub Desktop.
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(: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