Skip to content
Extraits de code Groupes Projets
config.ru 602 octets
Newer Older
 #   Copyright (c) 2010-2011, Diaspora Inc.  This file is
Raphael's avatar
Raphael a validé
#   licensed under the Affero General Public License version 3 or later.  See
Raphael's avatar
Raphael a validé
#   the COPYRIGHT file.
Raphael Sofaer's avatar
Raphael Sofaer a validé
# This file is used by Rack-based servers to start the application.

require ::File.expand_path('../config/environment',  __FILE__)
danielgrippi's avatar
danielgrippi a validé
require ::File.expand_path('../lib/unicorn_killer',  __FILE__)
require ::File.expand_path('../lib/rack/chrome_frame',  __FILE__)
# Kill unicorn workers really agressively (at 300mb)
if defined?(Unicorn)
  use UnicornKiller::Oom, 300 * 1024
end
use Rack::ChromeFrame, :minimum => 8
run Diaspora::Application