Add cdn
This commit is contained in:
parent
e7fb967d55
commit
d8fdc0dd20
|
@ -29,6 +29,9 @@ SITE_YEAR: '© 2012 - 2016'
|
|||
# google analytics, blank it if you don't need
|
||||
GOOGLE: ''
|
||||
|
||||
# CDN ( optional )
|
||||
CDN: ''
|
||||
|
||||
# Email Setting, see more: /config/environments/production.rb
|
||||
MAIL_SERVER: ''
|
||||
DOMAIN_NAME: ''
|
||||
|
|
|
@ -55,7 +55,9 @@ WBlog::Application.configure do
|
|||
# config.cache_store = :mem_cache_store
|
||||
|
||||
# Enable serving of images, stylesheets, and JavaScripts from an asset server.
|
||||
# config.action_controller.asset_host = "http://assets.example.com"
|
||||
if ENV['CDN'].present?
|
||||
config.action_controller.asset_host = ENV['CDN']
|
||||
end
|
||||
|
||||
# Precompile additional assets.
|
||||
# application.js, application.css, and all non-JS/CSS in app/assets folder are already added.
|
||||
|
|
Loading…
Reference in New Issue