eedf735574
Bootsnap speeds up Rails loading and now ships by default with Rails 5.2 apps. We should promote this to a default gem and test it out in production. This will also make it possible for the Helm Charts to take advantage of this. It appears that Bootsnap with Rails 5.2.3 and all the GitLab CE gems loads fine on an ARM platform now, so it's possible that https://gitlab.com/gitlab-org/gitlab-ce/issues/34799 has been resolved. Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/45230
9 lines
381 B
Ruby
9 lines
381 B
Ruby
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../Gemfile', __dir__)
|
|
|
|
# Set up gems listed in the Gemfile.
|
|
require 'bundler/setup' if File.exist?(ENV['BUNDLE_GEMFILE'])
|
|
begin
|
|
require 'bootsnap/setup' if ENV['RAILS_ENV'] != 'production' || %w(1 yes true).include?(ENV['ENABLE_BOOTSNAP'])
|
|
rescue LoadError
|
|
# bootsnap is an optional dependency, so if we don't have it, it's fine
|
|
end
|