mirror of
https://github.com/discourse/discourse.git
synced 2025-06-01 17:40:43 +08:00
FEATURE: allow overriding server static asset if needed
This commit is contained in:
@ -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_assets = false
|
||||
config.serve_static_assets = GlobalSetting.serve_static_assets
|
||||
|
||||
if rails4?
|
||||
config.assets.js_compressor = :uglifier
|
||||
|
Reference in New Issue
Block a user