]> git.openstreetmap.org Git - rails.git/commitdiff
Made Bootsnap required only when asked-for
authorMichal Migurski <mike@teczno.com>
Mon, 28 Dec 2020 19:21:50 +0000 (11:21 -0800)
committerMichal Migurski <migurski@fb.com>
Thu, 28 Jan 2021 20:03:58 +0000 (12:03 -0800)
config/boot.rb

index 988a5ddc460f03c2cafb3b91d98f0cc930ebc8ed..630904bfcc63fc033b45834ce853223dc2d055c8 100644 (file)
@@ -1,4 +1,4 @@
 ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../Gemfile", __dir__)
 
 require "bundler/setup" # Set up gems listed in the Gemfile.
 ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../Gemfile", __dir__)
 
 require "bundler/setup" # Set up gems listed in the Gemfile.
-require "bootsnap/setup" # Speed up boot time by caching expensive operations.
+require "bootsnap/setup" if ENV.fetch("ENABLE_BOOTSNAP", "true") == "true" # Speed up boot time by caching expensive operations.