This commit is contained in:
yafeilee 2016-08-06 02:29:42 +08:00
parent e7fb967d55
commit d8fdc0dd20
2 changed files with 6 additions and 1 deletions

View File

@ -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: ''

View File

@ -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.