FIX: 'config.serve_static_files' was renamed to 'config.public_file_server.enabled' in Rails 5.1

This commit is contained in:
Régis Hanol 2017-10-27 18:32:23 +02:00
parent fba0c9e51e
commit 7ab49acac2
3 changed files with 3 additions and 3 deletions

View File

@ -10,7 +10,7 @@ Discourse::Application.configure do
config.action_controller.perform_caching = true
# Disable Rails's static asset server (Apache or nginx will already do this)
config.serve_static_files = GlobalSetting.serve_static_assets
config.public_file_server.enabled = GlobalSetting.serve_static_assets || false
config.assets.js_compressor = :uglifier

View File

@ -13,7 +13,7 @@ Discourse::Application.configure do
config.action_controller.perform_caching = true
# in profile mode we serve static assets
config.serve_static_files = true
config.public_file_server.enabled = true
# Compress JavaScripts and CSS
config.assets.compress = true

View File

@ -8,7 +8,7 @@ Discourse::Application.configure do
config.cache_classes = true
# Configure static asset server for tests with Cache-Control for performance
config.serve_static_files = true
config.public_file_server.enabled = true
# Show full error reports and disable caching
config.consider_all_requests_local = true