2015-02-16 17:56:21 -05:00
|
|
|
require_dependency 'scheduler/defer'
|
|
|
|
|
|
|
|
if defined? Unicorn::HttpServer
|
|
|
|
ObjectSpace.each_object(Unicorn::HttpServer) do |s|
|
|
|
|
s.extend(Scheduler::Defer::Unicorn)
|
|
|
|
end
|
|
|
|
|
|
|
|
if ENV['UNICORN_ENABLE_OOBGC'] == '1'
|
|
|
|
require 'middleware/unicorn_oobgc'
|
|
|
|
Middleware::UnicornOobgc.init
|
|
|
|
end
|
2013-11-12 23:28:39 -05:00
|
|
|
end
|