summaryrefslogtreecommitdiff
path: root/config/boot.rb
diff options
context:
space:
mode:
authorPawel Chojnacki <pawel@chojnacki.ws>2017-06-15 23:41:47 +0200
committerPawel Chojnacki <pawel@chojnacki.ws>2017-06-15 23:41:47 +0200
commitf982fef9b523a87ff7e48158bd20713789a8ee89 (patch)
tree26153f9e03a817fcde177c7437f69d59ff69b118 /config/boot.rb
parent75d425e4fcfb884960e179d5268a14829e183a70 (diff)
downloadgitlab-ce-f982fef9b523a87ff7e48158bd20713789a8ee89.tar.gz
set ENV['prometheus_multiproc_dir'] in config/boot.rb instead of config.ru
Diffstat (limited to 'config/boot.rb')
-rw-r--r--config/boot.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/config/boot.rb b/config/boot.rb
index 17a71148370..db5ab918021 100644
--- a/config/boot.rb
+++ b/config/boot.rb
@@ -5,6 +5,9 @@ ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__)
require 'bundler/setup' if File.exist?(ENV['BUNDLE_GEMFILE'])
+# set default directory for multiproces metrics gathering
+ENV['prometheus_multiproc_dir'] ||= 'tmp/prometheus_multiproc_dir'
+
# Default Bootsnap configuration from https://github.com/Shopify/bootsnap#usage
require 'bootsnap'
Bootsnap.setup(