You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
621 B

8 years ago
  1. unless ENV.key?('RAILS_ENV')
  2. STDERR.puts 'ERROR: Missing RAILS_ENV environment variable, please set it to "production", "development", or "test".'
  3. exit 1
  4. end
  5. ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../Gemfile', __dir__)
  6. require 'bundler/setup' # Set up gems listed in the Gemfile.
  7. require 'bootsnap' # Speed up boot time by caching expensive operations.
  8. Bootsnap.setup(
  9. cache_dir: File.expand_path('../tmp/cache', __dir__),
  10. development_mode: ENV.fetch('RAILS_ENV', 'development') == 'development',
  11. load_path_cache: true,
  12. compile_cache_iseq: false,
  13. compile_cache_yaml: false
  14. )