Fix CDN_HOST variable requirement
This commit is contained in:
parent
950312bada
commit
6c82dfcf5f
2 changed files with 5 additions and 3 deletions
|
@ -13,7 +13,7 @@ Rails.application.configure do
|
|||
# Full error reports are disabled and caching is turned on.
|
||||
config.consider_all_requests_local = false
|
||||
config.action_controller.perform_caching = true
|
||||
config.action_controller.asset_host = ENV['CDN_HOST']
|
||||
config.action_controller.asset_host = ENV['CDN_HOST'] if ENV.key?('CDN_HOST')
|
||||
|
||||
# Disable serving static files from the `/public` folder by default since
|
||||
# Apache or NGINX already handles this.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue