mirror of
https://github.com/discourse/discourse.git
synced 2024-11-24 04:04:21 +08:00
13 lines
294 B
Ruby
13 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
|