diff options
author | Burke Libbey <burke@libbey.me> | 2017-06-01 14:28:51 -0400 |
---|---|---|
committer | Burke Libbey <burke@libbey.me> | 2017-07-17 13:17:45 -0400 |
commit | 0312a5c67e35b960e33677b5358c539f1047e4e1 (patch) | |
tree | 26f25351ba0e824a40b7e26ed08782942cae431f /railties/lib/rails/generators/rails/app/templates/Gemfile | |
parent | 9914964514fc43f6eadba06a47fccdf95b7806f7 (diff) | |
download | rails-0312a5c67e35b960e33677b5358c539f1047e4e1.tar.gz rails-0312a5c67e35b960e33677b5358c539f1047e4e1.tar.bz2 rails-0312a5c67e35b960e33677b5358c539f1047e4e1.zip |
Add bootsnap to default Gemfile:
Bootsnap precomputes load path resolution and caches ruby ISeq
and YAML parsing/compilation, reducing application boot time by
approximately 50% on supported configurations.
Diffstat (limited to 'railties/lib/rails/generators/rails/app/templates/Gemfile')
-rw-r--r-- | railties/lib/rails/generators/rails/app/templates/Gemfile | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/railties/lib/rails/generators/rails/app/templates/Gemfile b/railties/lib/rails/generators/rails/app/templates/Gemfile index 64e2062aea..f49b503f85 100644 --- a/railties/lib/rails/generators/rails/app/templates/Gemfile +++ b/railties/lib/rails/generators/rails/app/templates/Gemfile @@ -19,6 +19,9 @@ git_source(:github) { |repo| "https://github.com/#{repo}.git" } # Use Capistrano for deployment # gem 'capistrano-rails', group: :development +# Reduces boot times through caching; required in config/boot.rb +gem 'bootsnap', '>= 1.1.0', require: false + <%- if options.api? -%> # Use Rack CORS for handling Cross-Origin Resource Sharing (CORS), making cross-origin AJAX possible # gem 'rack-cors' |