fix broken var

This commit is contained in:
André Bauer 2017-01-07 17:16:33 +01:00
parent 4752384df0
commit a5f19b3efb

View file

@ -16,7 +16,7 @@ before_fork do |server, _worker|
#
# Using this method we get 0 downtime deploys.
old_pid = "#{RAILS_PID_DIR}/unicorn.pid.oldbin"
old_pid = 'tmp/pids/unicorn.pid.oldbin'
if File.exist?(old_pid) && server.pid != old_pid
begin
Process.kill('QUIT', File.read(old_pid).to_i)