restart dj in deploy

This commit is contained in:
Timothy N. Tsvetkov 2011-04-11 21:07:49 +04:00
parent c7b19db4b6
commit 72f005e999
1 changed files with 1 additions and 1 deletions

View File

@ -45,7 +45,7 @@ namespace :deploy do
desc "Restarting mod_rails with restart.txt"
task :restart, :roles => :app, :except => { :no_release => true } do
run "cd #{deploy_to}/current ; ([ -f tmp/pids/unicorn.pid ] && kill -USR2 `cat tmp/pids/unicorn.pid`); true"
# restart_dj
restart_dj
end
%w(start).each { |name| task name, :roles => :app do deploy.restart end }