# This file is used by Rack-based servers to start the application.
if defined? Unicorn
  use Raindrops::Middleware
  require 'unicorn/oob_gc'
  GC.disable
  use Unicorn::OobGC, 16
  require 'unicorn/worker_killer'
  use Unicorn::WorkerKiller::MaxRequests, 1024, 4096
end

require ::File.expand_path('../config/environment',  __FILE__)
# Passenger hates map. And only it, AFAICT.
if defined? PhusionPassenger
  run Moebooru::Application
else
  map (ENV['RAILS_RELATIVE_URL_ROOT'] || '/') do
    run Moebooru::Application
  end
end

# This file is used by Rack-based servers to start the application.
if defined? Unicorn
  use Raindrops::Middleware
  require 'unicorn/oob_gc'
  GC.disable
  use Unicorn::OobGC, 5
  require 'unicorn/worker_killer'
  use Unicorn::WorkerKiller::MaxRequests, 1024, 4096
end

require ::File.expand_path('../config/environment',  __FILE__)
# Passenger hates map. And only it, AFAICT.
if defined? PhusionPassenger
  run Moebooru::Application
else
  map (ENV['RAILS_RELATIVE_URL_ROOT'] || '/') do
    run Moebooru::Application
  end
end

Reduce number of works to wait for oobgc
Reduce number of works to wait for oobgc

--HG--
branch : 3.2.1-release
