diff options
Diffstat (limited to 'config/boot.rb')
-rw-r--r-- | config/boot.rb | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/config/boot.rb b/config/boot.rb index f2830ae3166..db5ab918021 100644 --- a/config/boot.rb +++ b/config/boot.rb @@ -4,3 +4,18 @@ require 'rubygems' 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( + cache_dir: 'tmp/cache', + development_mode: ENV['RAILS_ENV'] == 'development', + load_path_cache: true, + autoload_paths_cache: true, + disable_trace: false, + compile_cache_iseq: true, + compile_cache_yaml: true +) |