60 lines
2.3 KiB
Ruby
60 lines
2.3 KiB
Ruby
# frozen_string_literal: true
|
|
|
|
#
|
|
# Copyright (C) 2011 - present Instructure, Inc.
|
|
#
|
|
# This file is part of Canvas.
|
|
#
|
|
# Canvas is free software: you can redistribute it and/or modify it under
|
|
# the terms of the GNU Affero General Public License as published by the Free
|
|
# Software Foundation, version 3 of the License.
|
|
#
|
|
# Canvas is distributed in the hope that it will be useful, but WITHOUT ANY
|
|
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
|
|
# A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
|
# details.
|
|
#
|
|
# You should have received a copy of the GNU Affero General Public License along
|
|
# with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
environment_configuration(defined?(config) && config) do |config|
|
|
# Settings specified here will take precedence over those in config/application.rb
|
|
|
|
# The test environment is used exclusively to run your application's
|
|
# test suite. You never need to work with it otherwise. Remember that
|
|
# your test database is "scratch space" for the test suite and is wiped
|
|
# and recreated between test runs. Don't rely on the data there!
|
|
config.cache_classes = true
|
|
|
|
# Show formatted error reports and disable caching
|
|
config.consider_all_requests_local = false
|
|
config.action_controller.perform_caching = false
|
|
|
|
# run rake js:build to build the optimized JS if set to true
|
|
# ENV['USE_OPTIMIZED_JS'] = 'true'
|
|
|
|
# Disable request forgery protection in test environment
|
|
config.action_controller.allow_forgery_protection = false
|
|
|
|
# Tell Action Mailer not to deliver emails to the real world.
|
|
# The :test delivery method accumulates sent emails in the
|
|
# ActionMailer::Base.deliveries array.
|
|
config.action_mailer.delivery_method = :test
|
|
|
|
#hairtrigger parallelized runtime race conditions
|
|
config.active_record.schema_format = :sql
|
|
|
|
config.cache_store = :null_store
|
|
|
|
# Raise exceptions instead of rendering exception templates
|
|
config.action_dispatch.show_exceptions = true
|
|
|
|
# Print deprecation notices to both stderr and the log
|
|
config.active_support.deprecation = [:stderr, :log]
|
|
|
|
config.eager_load = false
|
|
|
|
# eval <env>-local.rb if it exists
|
|
Dir[File.dirname(__FILE__) + "/" + File.basename(__FILE__, ".rb") + "-*.rb"].each { |localfile| eval(File.new(localfile).read, nil, localfile, 1) }
|
|
end
|