From a5f19b3efb50dfef551225f9f89597814616163f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Bauer?= Date: Sat, 7 Jan 2017 17:16:33 +0100 Subject: [PATCH] fix broken var --- config/unicorn.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/unicorn.rb b/config/unicorn.rb index e637c84fe..56508b989 100644 --- a/config/unicorn.rb +++ b/config/unicorn.rb @@ -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)