X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/e65e41a6942062ff044af0d31c41ca0e554343cc..f1571a1fb535fec084fa076c3515fd69e49d9a2b:/config/boot.rb diff --git a/config/boot.rb b/config/boot.rb index 6b750f00b..630904bfc 100644 --- a/config/boot.rb +++ b/config/boot.rb @@ -1,3 +1,4 @@ -ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__) +ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../Gemfile", __dir__) -require 'bundler/setup' # Set up gems listed in the Gemfile. +require "bundler/setup" # Set up gems listed in the Gemfile. +require "bootsnap/setup" if ENV.fetch("ENABLE_BOOTSNAP", "true") == "true" # Speed up boot time by caching expensive operations.