config.ru 620 Bytes
Newer Older
1
 #   Copyright (c) 2010-2011, Diaspora Inc.  This file is
Raphael's avatar
Raphael committed
2
#   licensed under the Affero General Public License version 3 or later.  See
Raphael's avatar
Raphael committed
3
#   the COPYRIGHT file.
4

Raphael Sofaer's avatar
Raphael Sofaer committed
5 6 7
# This file is used by Rack-based servers to start the application.

require ::File.expand_path('../config/environment',  __FILE__)
danielgrippi's avatar
danielgrippi committed
8 9
require ::File.expand_path('../lib/unicorn_killer',  __FILE__)
require ::File.expand_path('../lib/rack/chrome_frame',  __FILE__)
10

11 12 13 14
# Kill unicorn workers really agressively (at 300mb)
if defined?(Unicorn)
  use UnicornKiller::Oom, 300 * 1024
end
15
use Rack::Deflater
16 17
use Rack::ChromeFrame, :minimum => 8
run Diaspora::Application