Skip to content

Commit

Permalink
Change that deployment task for more recent capistrano.
Browse files Browse the repository at this point in the history
  • Loading branch information
seancribbs committed Jan 27, 2010
1 parent 27c72a3 commit 0158a6a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions config/deploy.rb
Expand Up @@ -12,9 +12,9 @@
task :restart, :roles => :app, :except => { :no_release => true } do
run "touch #{File.join(current_path,'tmp','restart.txt')}"
end
end

task :after_update_code do
run "ln -nfs #{deploy_to}/#{shared_dir}/config/database.yml #{release_path}/config/database.yml"
run "ln -nfs #{deploy_to}/#{shared_dir}/public/system #{release_path}/public/system"
after "deploy:update_code", "deploy:link_database_config"
task :link_database_config, :except => {:no_release => true} do
run "ln -nfs #{shared_path}/config/database.yml #{release_path}/config/database.yml"
end
end

0 comments on commit 0158a6a

Please sign in to comment.