config.ru 601 Bytes
Newer Older
danielgrippi's avatar
danielgrippi committed
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

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

# use UnicornKiller::MaxRequests, 1000
use UnicornKiller::Oom, 400 * 1024 #kill a unicorn that has gone over 400mB
13

14 15
use Rack::ChromeFrame, :minimum => 8
run Diaspora::Application