Skip to content

Commit dc37ff3

Browse files
authored
Add bootsnap (#4853)
1 parent 1fce009 commit dc37ff3

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

Gemfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,8 @@ gem "jwt"
100100
gem "newrelic_rpm"
101101
# Used to manage periodic cron-like jobs
102102
gem "clockwork"
103+
# Speed up app boot time by caching expensive operations
104+
gem 'bootsnap', require: false
103105

104106
##### DEPENDENCY PINS ######
105107
# These are gems that aren't used directly, only as dependencies for other gems.

Gemfile.lock

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,8 @@ GEM
111111
bindex (0.8.1)
112112
binding_of_caller (1.0.1)
113113
debug_inspector (>= 1.2.0)
114+
bootsnap (1.18.4)
115+
msgpack (~> 1.2)
114116
bootstrap (5.2.3)
115117
autoprefixer-rails (>= 9.1.0)
116118
popper_js (>= 2.11.6, < 3)
@@ -383,6 +385,7 @@ GEM
383385
monetize (~> 1.9)
384386
money (~> 6.13)
385387
railties (>= 3.0)
388+
msgpack (1.7.5)
386389
multi_xml (0.7.1)
387390
bigdecimal (~> 3.1)
388391
multipart-post (2.4.1)
@@ -717,6 +720,7 @@ DEPENDENCIES
717720
azure-storage-blob
718721
better_errors
719722
binding_of_caller
723+
bootsnap
720724
bootstrap (~> 5.2)
721725
brakeman
722726
bugsnag

config/boot.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../Gemfile", __dir__)
22

33
require "bundler/setup" # Set up gems listed in the Gemfile.
4-
# require 'bootsnap/setup' # Speed up boot time by caching expensive operations.
4+
require "bootsnap/setup" # Speed up boot time by caching expensive operations.

0 commit comments

Comments
 (0)