Fix errors in unicorn config

This commit is contained in:
Vladimir Sharshov 2012-03-20 23:11:59 +04:00
parent 41d98f5040
commit 4b4b718838
1 changed files with 3 additions and 5 deletions

View File

@ -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"