Improved comments and formatting.

This commit is contained in:
Thorsten Eckel 2014-10-12 14:45:14 +02:00
parent e302bed16a
commit 8accda251e
3 changed files with 25 additions and 15 deletions

View file

@ -20,7 +20,7 @@ Zammad::Application.configure do
# Compress JavaScripts and CSS # Compress JavaScripts and CSS
config.assets.compress = true config.assets.compress = true
# Compress JavaScripts and CSS. # Set uglifier as JS and sass as CSS compressor
config.assets.js_compressor = :uglifier config.assets.js_compressor = :uglifier
# config.assets.css_compressor = :sass # config.assets.css_compressor = :sass
@ -30,17 +30,17 @@ Zammad::Application.configure do
# Generate digests for assets URLs # Generate digests for assets URLs
config.assets.digest = true config.assets.digest = true
# Version of your assets, change this if you want to expire all your assets. # Version of your assets, change this if you want to expire all your assets
config.assets.version = '1.0' config.assets.version = '1.0'
# Specifies the header that your server uses for sending files # Specifies the header that your server uses for sending files
# config.action_dispatch.x_sendfile_header = "X-Sendfile" # for apache # config.action_dispatch.x_sendfile_header = "X-Sendfile" # for apache
# config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for nginx # config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for nginx
# Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies. # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies
# config.force_ssl = true # config.force_ssl = true
# See everything in the log (default is :info) # Define the log level (default is :info, to see all use :debug)
# config.log_level = :debug # config.log_level = :debug
config.log_level = :info config.log_level = :info
@ -69,12 +69,12 @@ Zammad::Application.configure do
# Send deprecation notices to registered listeners # Send deprecation notices to registered listeners
config.active_support.deprecation = :notify config.active_support.deprecation = :notify
# Disable automatic flushing of the log to improve performance. # Disable automatic flushing of the log to improve performance
# config.autoflush_log = false # config.autoflush_log = false
# autoload on # Enable autoload
config.dependency_loading = true config.dependency_loading = true
# Use default logging formatter so that PID and timestamp are not suppressed. # Use default logging formatter so that PID and timestamp are not suppressed
config.log_formatter = ::Logger::Formatter.new config.log_formatter = ::Logger::Formatter.new
end end

View file

@ -16,8 +16,13 @@ Zammad::Application.configure do
config.serve_static_assets = true config.serve_static_assets = true
config.static_cache_control = "public, max-age=3600" config.static_cache_control = "public, max-age=3600"
# Disable assert compression for relyable error code lines
config.assets.compress = false config.assets.compress = false
# Don't fallback to assets pipeline if a precompiled asset is missed
config.assets.compile = true config.assets.compile = true
# Generate digests for assets URLs
config.assets.digest = true config.assets.digest = true
# Show full error reports and disable caching # Show full error reports and disable caching
@ -38,7 +43,7 @@ Zammad::Application.configure do
# Disable request forgery protection in test environment # Disable request forgery protection in test environment
config.action_controller.allow_forgery_protection = false config.action_controller.allow_forgery_protection = false
# autoload on # Enable autoload
config.dependency_loading = true config.dependency_loading = true
end end

View file

@ -11,8 +11,13 @@ Zammad::Application.configure do
config.serve_static_assets = true config.serve_static_assets = true
config.static_cache_control = "public, max-age=3600" config.static_cache_control = "public, max-age=3600"
# Disable assert compression for relyable error code lines
config.assets.compress = false config.assets.compress = false
# Don't fallback to assets pipeline if a precompiled asset is missed
config.assets.compile = true config.assets.compile = true
# Generate digests for assets URLs
config.assets.digest = true config.assets.digest = true
# Show full error reports and disable caching # Show full error reports and disable caching
@ -33,7 +38,7 @@ Zammad::Application.configure do
# Disable request forgery protection in test environment # Disable request forgery protection in test environment
config.action_controller.allow_forgery_protection = false config.action_controller.allow_forgery_protection = false
# autoload on # Enable autoload
config.dependency_loading = true config.dependency_loading = true
end end