mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-27 17:46:05 -05:00
65edbb609c
This reverts commit 47e718f5b2
.
12 lines
320 B
Ruby
12 lines
320 B
Ruby
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' && RUBY_VERSION < "2.2.0"
|
|
require 'middleware/unicorn_oobgc'
|
|
Middleware::UnicornOobgc.init
|
|
end
|
|
end
|