2013-03-10 17:21:56 -07:00
|
|
|
Discourse::Application.configure do
|
|
|
|
# Settings specified here will take precedence over those in config/application.rb
|
|
|
|
|
2014-02-17 17:44:28 +01:00
|
|
|
config.eager_load = true
|
2013-09-10 16:22:58 +10:00
|
|
|
|
2013-03-10 17:21:56 -07:00
|
|
|
# Code is not reloaded between requests
|
|
|
|
config.cache_classes = true
|
|
|
|
|
2013-09-04 09:39:16 +10:00
|
|
|
config.log_level = :info
|
|
|
|
|
2013-03-10 17:21:56 -07: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
|
2015-09-23 15:24:30 +10:00
|
|
|
config.serve_static_files = true
|
2013-03-10 17:21:56 -07:00
|
|
|
|
|
|
|
# Compress JavaScripts and CSS
|
|
|
|
config.assets.compress = true
|
|
|
|
|
|
|
|
# stuff should be pre-compiled, allow compilation to make life easier
|
2013-11-05 14:12:26 +11:00
|
|
|
config.assets.compile = true
|
2013-03-10 17:21:56 -07: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-19 11:33:38 +10:00
|
|
|
# we recommend you use mailcatcher https://github.com/sj26/mailcatcher
|
|
|
|
config.action_mailer.smtp_settings = { address: "localhost", port: 1025 }
|
2013-03-10 17:21:56 -07:00
|
|
|
|
|
|
|
# Send deprecation notices to registered listeners
|
|
|
|
config.active_support.deprecation = :notify
|
|
|
|
|
2013-04-11 16:24:08 +10:00
|
|
|
# precompile handlebar assets
|
2013-03-10 17:21:56 -07:00
|
|
|
config.handlebars.precompile = true
|
|
|
|
|
2013-04-11 16:24:08 +10:00
|
|
|
# allows users to use mini profiler
|
2014-07-17 08:34:30 +10:00
|
|
|
config.load_mini_profiler = false
|
2013-03-10 17:21:56 -07:00
|
|
|
|
2014-11-11 10:28:17 +11: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 16:24:08 +10:00
|
|
|
# for profiling with perftools
|
|
|
|
# config.middleware.use ::Rack::PerftoolsProfiler, default_printer: 'gif'
|
2013-03-10 17:21:56 -07:00
|
|
|
end
|