fix for unicorn

This commit is contained in:
r888888888 2016-02-23 19:22:52 -08:00
parent bba877ec00
commit 2deb3cc3b4
2 changed files with 667 additions and 674 deletions

View File

@ -25,8 +25,6 @@ stdout_path "/dev/null"
pid "#{app_path}/tmp/pids/unicorn.pid"
before_fork do |server, worker|
ActiveRecord::Base.connection.disconnect!
old_pid = "#{server.config[:pid]}.oldbin"
if File.exists?(old_pid) && server.pid != old_pid
begin

File diff suppressed because it is too large Load Diff