A platform for community discussion. Free, open, simple.
PERF: add FORCE_BOOTSNAP env var
Sam Saffroncbaad631a47a
diff --git a/config/boot.rb b/config/boot.rbindex ae2ee5b2fab..affd36c9bb4 100644--- a/config/boot.rb+++ b/config/boot.rb@@ -12,7 +12,7 @@ ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__)require 'bundler/setup' if File.exists?(ENV['BUNDLE_GEMFILE'])-if ENV['RAILS_ENV'] != 'production' && ENV['RAILS_ENV'] != 'profile'+if (ENV['FORCE_BOOTSNAP'] == '1') || (ENV['RAILS_ENV'] != 'production' && ENV['RAILS_ENV'] != 'profile')beginrequire 'bootsnap'rescue LoadError