diff options
author | Rémy Coutable <remy@rymai.me> | 2017-06-09 13:59:30 +0300 |
---|---|---|
committer | Clement Ho <ClemMakesApps@gmail.com> | 2017-06-15 19:07:25 +0300 |
commit | f63cee7b842001e72b7379ef781b920aae75d67a (patch) | |
tree | ac9df4e079356ffb816d58768d5d246e7e86a0fa /config | |
parent | 3cc11c781fb88c3fe7ed85dd5f21c85a51655c83 (diff) |
Merge branch 'rs-bootsnap' into 'master'
Add Bootsnap to all environments to reduce application startup time
Closes #33081
See merge request !12034
Diffstat (limited to 'config')
-rw-r--r-- | config/boot.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/config/boot.rb b/config/boot.rb index f2830ae3166..17a71148370 100644 --- a/config/boot.rb +++ b/config/boot.rb @@ -4,3 +4,15 @@ require 'rubygems' ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__) require 'bundler/setup' if File.exist?(ENV['BUNDLE_GEMFILE']) + +# Default Bootsnap configuration from https://github.com/Shopify/bootsnap#usage +require 'bootsnap' +Bootsnap.setup( + cache_dir: 'tmp/cache', + development_mode: ENV['RAILS_ENV'] == 'development', + load_path_cache: true, + autoload_paths_cache: true, + disable_trace: false, + compile_cache_iseq: true, + compile_cache_yaml: true +) |