Skip to content

A platform for community discussion. Free, open, simple.

PERF: enable bootsnap globally

Sam Saffron7589551d68b2
diff --git a/config/boot.rb b/config/boot.rb
index affd36c9bb4..572d833edd7 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['FORCE_BOOTSNAP'] == '1') || (ENV['RAILS_ENV'] != 'production' && ENV['RAILS_ENV'] != 'profile')
+if (ENV['DISABLE_BOOTSNAP'] != '1')
begin
require 'bootsnap'
rescue LoadError