summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorblackst0ne <blackst0ne.ru@gmail.com>2017-06-27 10:11:29 +1100
committerblackst0ne <blackst0ne.ru@gmail.com>2017-06-27 10:11:29 +1100
commitb56db3338168a4fd48de9e87e6014260477368cd (patch)
treee71e96d51710b30eb6405f6bd61feab020f043b0 /config
parentf09aa6b755043e9bba1eb7ae8f1ae45adc5df136 (diff)
downloadgitlab-ce-b56db3338168a4fd48de9e87e6014260477368cd.tar.gz
Bump bootsnap to 1.1.1
Diffstat (limited to 'config')
-rw-r--r--config/boot.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/config/boot.rb b/config/boot.rb
index 2d01092acd5..02baeab29ab 100644
--- a/config/boot.rb
+++ b/config/boot.rb
@@ -5,6 +5,12 @@ 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'