+ config.log_formatter = Logger::Formatter.new
+
+ # Use a different logger for distributed setups.
+ # require "syslog/logger"
+ # config.logger = ActiveSupport::TaggedLogging.new(Syslog::Logger.new "app-name")
+
+ if ENV["RAILS_LOG_TO_STDOUT"].present?
+ logger = ActiveSupport::Logger.new($stdout)
+ logger.formatter = config.log_formatter
+ config.logger = ActiveSupport::TaggedLogging.new(logger)
+ end
+
+ # Do not dump schema after migrations.
+ config.active_record.dump_schema_after_migration = false unless Settings.status == "database_offline"
+
+ # Enable autoloading of dependencies.
+ config.enable_dependency_loading = true
+
+ # Use delayed job to queue jobs in production.
+ config.active_job.queue_adapter = :delayed_job