Welcome to mirror list, hosted at ThFree Co, Russian Federation.

boot.rb « config - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 02baeab29ab69d8270c72314046f94709f6454e3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
require 'rubygems'

# Set up gems listed in the Gemfile.
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__)

require 'bundler/setup' if File.exist?(ENV['BUNDLE_GEMFILE'])

begin
  require 'bootsnap/setup'
rescue SystemCallError => exception
  $stderr.puts "WARNING: Bootsnap failed to setup: #{exception.message}"
end

# set default directory for multiproces metrics gathering
if ENV['RAILS_ENV'] == 'development' || ENV['RAILS_ENV'] == 'test'
  ENV['prometheus_multiproc_dir'] ||= 'tmp/prometheus_multiproc_dir'
end