discourse/config/initializers/099-unicorn.rb
Sam 2cc95af69b Revert "REVERT: message bus changes"
This reverts commit 4820d5c7b0259d3b49ff4bbc916e08fa44633e9c.
2015-12-09 07:36:36 +11:00

13 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