{{ autogenerated }} # see: # https://gitlab.com/gitlab-org/gitlab-ce/blob/master/config.ru # https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/files/gitlab-cookbooks/gitlab/templates/default/gitlab-rails-config.ru.erb # (last updated for omnibus-gitlab 8.2.3+ce.0-0-g8eda093) # This file is used by Rack-based servers to start the application. {% from 'macrolib.cfg.in' import cfg with context %} if defined?(Unicorn) require 'unicorn' if ENV['RAILS_ENV'] == 'production' || ENV['RAILS_ENV'] == 'staging' # Unicorn self-process killer require 'unicorn/worker_killer' # Max memory size (RSS) per worker use Unicorn::WorkerKiller::Oom, ({{ cfg('unicorn_worker_memory_limit_min') }}), ({{ cfg('unicorn_worker_memory_limit_max') }}) end end require ::File.expand_path('../config/environment', __FILE__) map ENV['RAILS_RELATIVE_URL_ROOT'] || "/" do run Gitlab::Application end