From 4b4b718838d89205be0e7fbcf44abbac710692b4 Mon Sep 17 00:00:00 2001 From: Vladimir Sharshov Date: Tue, 20 Mar 2012 23:11:59 +0400 Subject: [PATCH] Fix errors in unicorn config --- config/unicorn.rb | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/config/unicorn.rb b/config/unicorn.rb index 24da4f74c..887fb0c19 100644 --- a/config/unicorn.rb +++ b/config/unicorn.rb @@ -16,15 +16,13 @@ timeout 600 # feel free to point this anywhere accessible on the filesystem pid_file = File.join(base_path, 'shared', 'pids', 'unicorn.pid') -old_pid = pid + '.oldbin' +old_pid = pid_file + '.oldbin' pid pid_file -# REE +# REE or Ruby 2.0 # http://www.rubyenterpriseedition.com/faq.html#adapt_apps_for_cow -if GC.respond_to?(:copy_on_write_friendly=) - GC.copy_on_write_friendly = true -end +GC.copy_on_write_friendly = true if GC.respond_to?(:copy_on_write_friendly=) before_exec do |server| ENV["BUNDLE_GEMFILE"] = "#{base_path}/current/Gemfile"