mirror of
https://github.com/discourse/discourse.git
synced 2025-06-01 02:04:53 +08:00
bootsnap upgrade
see: https://github.com/Shopify/bootsnap/pull/43#issuecomment-304281474
This commit is contained in:
@ -12,8 +12,6 @@ require 'bundler/setup' if File.exists?(ENV['BUNDLE_GEMFILE'])
|
||||
|
||||
|
||||
if ENV['RAILS_ENV'] != 'production'
|
||||
is_mac = !!(RUBY_PLATFORM =~ /darwin/)
|
||||
|
||||
require 'bootsnap'
|
||||
|
||||
Bootsnap.setup(
|
||||
@ -21,7 +19,7 @@ if ENV['RAILS_ENV'] != 'production'
|
||||
load_path_cache: true, # Should we optimize the LOAD_PATH with a cache?
|
||||
autoload_paths_cache: true, # Should we optimize ActiveSupport autoloads with cache?
|
||||
disable_trace: false, # Sets `RubyVM::InstructionSequence.compile_option = { trace_instruction: false }`
|
||||
compile_cache_iseq: is_mac, # Should compile Ruby code into ISeq cache?
|
||||
compile_cache_yaml: false # Should compile YAML into a cache?
|
||||
compile_cache_iseq: true, # Should compile Ruby code into ISeq cache?
|
||||
compile_cache_yaml: false # Skip YAML cache for now, cause we were seeing issues with it
|
||||
)
|
||||
end
|
||||
|
Reference in New Issue
Block a user