1
0
Fork 0
This repository has been archived on 2023-03-27. You can view files and clone it, but cannot push or open issues or pull requests.
lpr-partynest/config/boot.rb

27 lines
651 B
Ruby
Raw Normal View History

2018-11-22 14:58:12 -05:00
# frozen_string_literal: true
2020-01-15 06:58:28 -05:00
Warning[:deprecated] = false
2018-11-22 14:33:08 -05:00
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../Gemfile', __dir__)
require 'bundler/setup' # Set up gems listed in the Gemfile.
2018-12-08 18:46:40 -05:00
require 'bootsnap'
cache_dir = File.join(File.expand_path('..', __dir__), 'tmp', 'cache')
env = ENV['RAILS_ENV'] || ENV['RACK_ENV'] || ENV['ENV']
development_mode = ['', nil, 'development'].include?(env)
test_mode = env == 'test'
Bootsnap.setup(
2019-04-28 09:34:46 -04:00
cache_dir: cache_dir,
development_mode: development_mode,
load_path_cache: true,
2018-12-08 18:46:40 -05:00
autoload_paths_cache: true,
2019-04-28 09:34:46 -04:00
disable_trace: false,
compile_cache_iseq: test_mode,
compile_cache_yaml: true,
2018-12-08 18:46:40 -05:00
)