update OOB gc hook for unicorn
This commit is contained in:
2
Gemfile
2
Gemfile
@@ -57,6 +57,8 @@ gem 'aws-s3', :require => "aws/s3", :git => "https://github.com/fnando/aws-s3.gi
|
|||||||
|
|
||||||
group :production do
|
group :production do
|
||||||
gem 'unicorn', :platforms => :ruby
|
gem 'unicorn', :platforms => :ruby
|
||||||
|
# gem 'unicorn-worker-killer'
|
||||||
|
gem 'gctools'
|
||||||
gem 'capistrano-unicorn', :require => false
|
gem 'capistrano-unicorn', :require => false
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@@ -104,6 +104,7 @@ GEM
|
|||||||
faraday (0.9.0)
|
faraday (0.9.0)
|
||||||
multipart-post (>= 1.2, < 3)
|
multipart-post (>= 1.2, < 3)
|
||||||
ffaker (1.24.0)
|
ffaker (1.24.0)
|
||||||
|
gctools (0.2.3)
|
||||||
hashie (3.3.1)
|
hashie (3.3.1)
|
||||||
highline (1.6.21)
|
highline (1.6.21)
|
||||||
hike (1.2.3)
|
hike (1.2.3)
|
||||||
@@ -310,6 +311,7 @@ DEPENDENCIES
|
|||||||
diff-lcs
|
diff-lcs
|
||||||
factory_girl
|
factory_girl
|
||||||
ffaker
|
ffaker
|
||||||
|
gctools
|
||||||
kgio
|
kgio
|
||||||
mechanize
|
mechanize
|
||||||
mocha
|
mocha
|
||||||
|
|||||||
@@ -3,9 +3,8 @@
|
|||||||
require ::File.expand_path('../config/environment', __FILE__)
|
require ::File.expand_path('../config/environment', __FILE__)
|
||||||
|
|
||||||
if defined? Unicorn
|
if defined? Unicorn
|
||||||
require_dependency 'unicorn/oob_gc'
|
require_dependency 'gctools/oobgc'
|
||||||
GC.disable
|
use GC::OOB::UnicornMiddleware
|
||||||
use Unicorn::OobGC
|
|
||||||
end
|
end
|
||||||
|
|
||||||
run Rails.application
|
run Rails.application
|
||||||
|
|||||||
Reference in New Issue
Block a user