Permalink
Browse files

fixing the way that unicorn restarts. this was causing all kinds

of problems down the capistrano deploy line
  • Loading branch information...
1 parent 51a4c95 commit d84ad2e7f1c26b5142608d86a6899c735a410418 @Bringo Bringo committed Jan 12, 2012
Showing with 1 addition and 2 deletions.
  1. +1 −2 config/deploy.rb
View
@@ -225,9 +225,8 @@ def pidfile_location_for(server = :thin)
run "[ -f #{pidfile_location_for(:unicorn)} ] && kill -USR2 `cat #{pidfile_location_for(:unicorn)}`"
rescue CommandError => e
logger.info "restarting failed; trying just to start" if logger
+ start
end
-
- start
end
end

0 comments on commit d84ad2e

Please sign in to comment.