2019-05-02 18:17:27 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2013-03-10 20:21:56 -04:00
|
|
|
Discourse::Application.configure do
|
|
|
|
# Settings specified here will take precedence over those in config/application.rb
|
|
|
|
|
2014-02-17 11:44:28 -05:00
|
|
|
config.eager_load = true
|
2013-09-10 02:22:58 -04:00
|
|
|
|
2013-03-10 20:21:56 -04:00
|
|
|
# Code is not reloaded between requests
|
|
|
|
config.cache_classes = true
|
|
|
|
|
2013-09-03 19:39:16 -04:00
|
|
|
config.log_level = :info
|
|
|
|
|
2013-03-10 20:21:56 -04:00
|
|
|
# Full error reports are disabled and caching is turned on
|
|
|
|
config.consider_all_requests_local = false
|
|
|
|
config.action_controller.perform_caching = true
|
|
|
|
|
|
|
|
# in profile mode we serve static assets
|
2017-10-27 12:32:23 -04:00
|
|
|
config.public_file_server.enabled = true
|
2013-03-10 20:21:56 -04:00
|
|
|
|
|
|
|
# Compress JavaScripts and CSS
|
|
|
|
config.assets.compress = true
|
|
|
|
|
|
|
|
# stuff should be pre-compiled, allow compilation to make life easier
|
2013-11-04 22:12:26 -05:00
|
|
|
config.assets.compile = true
|
2013-03-10 20:21:56 -04:00
|
|
|
|
|
|
|
# Generate digests for assets URLs
|
|
|
|
config.assets.digest = true
|
|
|
|
|
|
|
|
# Specifies the header that your server uses for sending files
|
|
|
|
config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for nginx
|
|
|
|
|
2013-08-18 21:33:38 -04:00
|
|
|
# we recommend you use mailcatcher https://github.com/sj26/mailcatcher
|
|
|
|
config.action_mailer.smtp_settings = { address: "localhost", port: 1025 }
|
2013-03-10 20:21:56 -04:00
|
|
|
|
|
|
|
# Send deprecation notices to registered listeners
|
|
|
|
config.active_support.deprecation = :notify
|
|
|
|
|
2013-04-11 02:24:08 -04:00
|
|
|
# precompile handlebar assets
|
2013-03-10 20:21:56 -04:00
|
|
|
config.handlebars.precompile = true
|
|
|
|
|
2013-04-11 02:24:08 -04:00
|
|
|
# allows users to use mini profiler
|
2014-07-16 18:34:30 -04:00
|
|
|
config.load_mini_profiler = false
|
2013-03-10 20:21:56 -04:00
|
|
|
|
2014-11-10 18:28:17 -05:00
|
|
|
# we don't need full logster support, but need to keep it working
|
|
|
|
config.after_initialize do
|
|
|
|
Logster.logger = Rails.logger
|
|
|
|
end
|
|
|
|
|
2013-04-11 02:24:08 -04:00
|
|
|
# for profiling with perftools
|
|
|
|
# config.middleware.use ::Rack::PerftoolsProfiler, default_printer: 'gif'
|
2013-03-10 20:21:56 -04:00
|
|
|
end
|