aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails/generators/rails/app/templates/config/boot.rb.tt
blob: 720d36a2a46065024f9e761dfcb1d906252faab0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../Gemfile', __dir__)

require 'bundler/setup' # Set up gems listed in the Gemfile.
<% if depend_on_bootsnap? -%>
require 'bootsnap/setup' # Speed up boot time by caching expensive operations.
<%- end -%>

if %w[s server c console].any? { |a| ARGV.include?(a) }
  puts "=> Booting Rails"
end