2011-10-08 17:36:38 -04:00
|
|
|
require 'rubygems'
|
|
|
|
|
|
|
|
# Set up gems listed in the Gemfile.
|
|
|
|
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__)
|
|
|
|
|
2016-05-08 17:33:34 -04:00
|
|
|
require 'bundler/setup' if File.exist?(ENV['BUNDLE_GEMFILE'])
|
2017-06-08 18:26:23 -04:00
|
|
|
|
2017-06-15 17:41:47 -04:00
|
|
|
# set default directory for multiproces metrics gathering
|
2017-06-15 17:41:47 -04:00
|
|
|
if ENV['RAILS_ENV'] == 'development' || ENV['RAILS_ENV'] == 'test'
|
|
|
|
ENV['prometheus_multiproc_dir'] ||= 'tmp/prometheus_multiproc_dir'
|
|
|
|
end
|