mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-12-18 11:32:24 -05:00
12 lines
294 B
Ruby
12 lines
294 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'
|
|
require 'middleware/unicorn_oobgc'
|
|
Middleware::UnicornOobgc.init
|
|
end
|
|
end
|