Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
19 lines (16 sloc) 538 Bytes
# This file is used by Rack-based servers to start the application.
if defined? Unicorn
require "unicorn/worker_killer"
use Unicorn::WorkerKiller::MaxRequests, 4096, 8192
use Unicorn::WorkerKiller::Oom, (256*(1024**2)), (384*(1024**2))
end
require ::File.expand_path("../config/environment", __FILE__)
# Passenger hates map. And only it, AFAICT.
if defined? PhusionPassenger
run Moebooru::Application
else
ENV["RAILS_RELATIVE_URL_ROOT"] ||= "/"
map ENV["RAILS_RELATIVE_URL_ROOT"] do
run Moebooru::Application
end
end