boot.rb 401 B

1234567891011
  1. # frozen_string_literal: true
  2. unless ENV.key?('RAILS_ENV')
  3. STDERR.puts 'ERROR: Missing RAILS_ENV environment variable, please set it to "production", "development", or "test".'
  4. exit 1
  5. end
  6. ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../Gemfile', __dir__)
  7. require 'bundler/setup' # Set up gems listed in the Gemfile.
  8. require 'bootsnap/setup' # Speed up boot time by caching expensive operations.