app: enable Bootsnap
Bootsnap speeds up the initial loading of the Rails app by: - Optimizing the LOAD_PATH dynamically - Caching the result of Ruby bytecode compilation Cached data are written to `tmp/cache/bootsnap*`. This is enabled in the default Rails app template.
This commit is contained in:
parent
5e7424a782
commit
56b3601063
3 changed files with 7 additions and 1 deletions
|
@ -1,3 +1,4 @@
|
|||
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" # Speed up boot time by caching expensive operations.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue