From c0a352a499d8ee69c26e11ad6ce608de7dacf749 Mon Sep 17 00:00:00 2001 From: albert Date: Tue, 30 Aug 2011 14:11:32 -0400 Subject: [PATCH] deploy script fixes --- config/deploy.rb | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/config/deploy.rb b/config/deploy.rb index c069cd038..03576f4ea 100644 --- a/config/deploy.rb +++ b/config/deploy.rb @@ -64,37 +64,37 @@ namespace :deploy do namespace :web do desc "Present a maintenance page to visitors." task :disable do - maintenance_html_path = "#{current_path}/public/maintenance.html.bak" - run "if [ -e #{maintenance_html_path} ] ; then mv #{maintenance_html_path} #{current_path}/public/maintenance.html ; fi" + maintenance_html_path = "#{release_path}/public/maintenance.html.bak" + run "if [ -e #{maintenance_html_path} ] ; then mv #{maintenance_html_path} #{release_path}/public/maintenance.html ; fi" end desc "Makes the application web-accessible again." task :enable do - maintenance_html_path = "#{current_path}/public/maintenance.html" - run "if [ -e #{maintenance_html_path} ] ; then mv #{maintenance_html_path} #{current_path}/public/maintenance.html.bak ; fi" + maintenance_html_path = "#{release_path}/public/maintenance.html" + run "if [ -e #{maintenance_html_path} ] ; then mv #{maintenance_html_path} #{release_path}/public/maintenance.html.bak ; fi" end end desc "Compile the image resizer" task :compile_image_resizer do - run "cd #{current_path}/lib/danbooru_image_resizer ; ruby extconf.rb ; make" + run "cd #{release_path}/lib/danbooru_image_resizer ; ruby extconf.rb ; make" end end namespace :delayed_job do desc "Start delayed_job process" task :start, :roles => :app do - run "cd #{current_path}; script/delayed_job start #{rails_env}" + run "cd #{release_path}; script/delayed_job start #{rails_env}" end desc "Stop delayed_job process" task :stop, :roles => :app do - run "cd #{current_path}; script/delayed_job stop #{rails_env}" + run "cd #{release_path}; script/delayed_job stop #{rails_env}" end desc "Restart delayed_job process" task :restart, :roles => :app do - run "cd #{current_path}; script/delayed_job restart #{rails_env}" + run "cd #{release_path}; script/delayed_job restart #{rails_env}" end end