config.ru 429 Bytes
Newer Older
gitlabhq's avatar
gitlabhq committed
1 2
# This file is used by Rack-based servers to start the application.

3
if defined?(Unicorn)
4
  require 'unicorn'
5 6
  # Unicorn self-process killer
  require 'unicorn/worker_killer'
7

8 9 10
  # Max memory size (RSS) per worker
  use Unicorn::WorkerKiller::Oom, (200 * (1 << 20)), (250 * (1 << 20))
end
11

gitlabhq's avatar
gitlabhq committed
12
require ::File.expand_path('../config/environment',  __FILE__)
13 14 15 16

map ENV['RAILS_RELATIVE_URL_ROOT'] || "/" do
  run Gitlab::Application
end