Made Bootsnap required only when asked-for

This commit is contained in:
Michal Migurski 2020-12-28 11:21:50 -08:00 committed by Michal Migurski
parent 60f8fb9c93
commit c66041cb71

View file

@ -1,4 +1,4 @@
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.