--- a/config/deploy.rb
+++ b/config/deploy.rb
@@ -29,6 +29,12 @@ depend :remote, :gem, "chronic", ">= 0.2.3"
# I'm using a FreeBSD port here...
# depend :remote, :gem, "rmagick", ">= x"
+desc "Symlink the configs into the current release"
+task :after_update_code, :roles => [ :app ] do
+ run "ln -s #{shared_path}/config/database.yml #{release_path}/config/database.yml"
+ run "ln -s #{shared_path}/config/gitorious.yml #{release_path}/config/gitorious.yml"
+end
+
desc "Starting and stopping via god."
deploy.task :start do
sudo "god load #{deploy_to}/current/config/god.config" |