Skip to content

Commit

Permalink
Use bootsnap to improve startup time.
Browse files Browse the repository at this point in the history
  • Loading branch information
sengi committed Dec 13, 2022
1 parent 2f363f9 commit c5d5971
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ source "https://rubygems.org"

gem "rails", "7.0.4"

gem "bootsnap", require: false
gem "dalli"
gem "gds-api-adapters"
gem "govuk_ab_testing"
Expand Down
5 changes: 5 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,8 @@ GEM
smart_properties
binding_of_caller (1.0.0)
debug_inspector (>= 0.0.1)
bootsnap (1.15.0)
msgpack (~> 1.2)
brakeman (5.3.1)
builder (3.2.4)
capybara (3.38.0)
Expand Down Expand Up @@ -206,6 +208,8 @@ GEM
ruby2_keywords (>= 0.0.5)
net-imap (0.3.2)
date
msgpack (1.6.0)
net-imap (0.3.1)
net-protocol
net-pop (0.1.2)
net-protocol
Expand Down Expand Up @@ -395,6 +399,7 @@ PLATFORMS
DEPENDENCIES
better_errors
binding_of_caller
bootsnap
capybara
climate_control
dalli
Expand Down
1 change: 1 addition & 0 deletions config/boot.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../Gemfile", __dir__)

require "bundler/setup" # Set up gems listed in the Gemfile.
require "bootsnap/setup"

0 comments on commit c5d5971

Please sign in to comment.