Skip to content

Commit

Permalink
PERF: enable bootsnap globally
Browse files Browse the repository at this point in the history
If people wish to opt out they can use `DISABLE_BOOTSNAP = 1`

Bootsnap is production ready and was tested on our production
servers for safety.

Promoting it now so it is enabled globally.

Will result in faster application boot
  • Loading branch information
SamSaffron committed Jun 10, 2020
1 parent 7e1c933 commit 7589551
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/boot.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

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
Expand Down

0 comments on commit 7589551

Please sign in to comment.