mirror of
https://github.com/discourse/discourse.git
synced 2024-11-22 08:57:10 -06:00
FEATURE: allow overriding server static asset if needed
This commit is contained in:
parent
5777423b05
commit
73aca9063d
@ -86,3 +86,6 @@ redis_password =
|
|||||||
# enable Cross-origin Resource Sharing (CORS) directly at the application level
|
# enable Cross-origin Resource Sharing (CORS) directly at the application level
|
||||||
enable_cors = false
|
enable_cors = false
|
||||||
cors_origin = '*'
|
cors_origin = '*'
|
||||||
|
|
||||||
|
# enable if you really need to serve assets in prd
|
||||||
|
serve_static_assets = false
|
||||||
|
@ -10,7 +10,7 @@ Discourse::Application.configure do
|
|||||||
config.action_controller.perform_caching = true
|
config.action_controller.perform_caching = true
|
||||||
|
|
||||||
# Disable Rails's static asset server (Apache or nginx will already do this)
|
# 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?
|
if rails4?
|
||||||
config.assets.js_compressor = :uglifier
|
config.assets.js_compressor = :uglifier
|
||||||
|
Loading…
Reference in New Issue
Block a user