OSDN Git Service

Merge branch 'ui_fixes' into 'master'
[wvm/gitlab.git] / config.ru
1 # This file is used by Rack-based servers to start the application.
2
3 if defined?(Unicorn)
4   require 'unicorn'
5   # Unicorn self-process killer
6   require 'unicorn/worker_killer'
7
8   # Max memory size (RSS) per worker
9   use Unicorn::WorkerKiller::Oom, (200 * (1 << 20)), (250 * (1 << 20))
10 end
11
12 require ::File.expand_path('../config/environment',  __FILE__)
13
14 map ENV['RAILS_RELATIVE_URL_ROOT'] || "/" do
15   run Gitlab::Application
16 end