update OOB gc hook for unicorn

This commit is contained in:
r888888888 2015-05-10 11:11:01 -07:00
parent f3a4037597
commit 18cf23a817
3 changed files with 6 additions and 3 deletions

View File

@ -57,6 +57,8 @@ gem 'aws-s3', :require => "aws/s3", :git => "https://github.com/fnando/aws-s3.gi
group :production do
gem 'unicorn', :platforms => :ruby
# gem 'unicorn-worker-killer'
gem 'gctools'
gem 'capistrano-unicorn', :require => false
end

View File

@ -104,6 +104,7 @@ GEM
faraday (0.9.0)
multipart-post (>= 1.2, < 3)
ffaker (1.24.0)
gctools (0.2.3)
hashie (3.3.1)
highline (1.6.21)
hike (1.2.3)
@ -310,6 +311,7 @@ DEPENDENCIES
diff-lcs
factory_girl
ffaker
gctools
kgio
mechanize
mocha

View File

@ -3,9 +3,8 @@
require ::File.expand_path('../config/environment', __FILE__)
if defined? Unicorn
require_dependency 'unicorn/oob_gc'
GC.disable
use Unicorn::OobGC
require_dependency 'gctools/oobgc'
use GC::OOB::UnicornMiddleware
end
run Rails.application