environment assets config

This commit is contained in:
Devin Howard 2015-10-25 17:09:57 +08:00 committed by Connor Turland
parent bd60f68cfe
commit a972074306
3 changed files with 7 additions and 5 deletions

View file

@ -40,10 +40,6 @@ Metamaps::Application.configure do
# Print deprecation notices to the Rails logger
config.active_support.deprecation = :log
# Compress assets
config.assets.compile = true
config.assets.compress = false
# Expands the lines which load the assets
config.assets.debug = true
end

View file

@ -15,7 +15,7 @@ Metamaps::Application.configure do
# Disable Rails's static asset server (Apache or nginx will already do this)
config.serve_static_files = true
config.assets.compile = true
config.assets.compile = false
# Compress JavaScripts and CSS
config.assets.compress = true

View file

@ -30,4 +30,10 @@ Metamaps::Application.configure do
# Print deprecation notices to the stderr
config.active_support.deprecation = :stderr
#assets config
config.assets.compile = true
config.assets.compress = false
config.assets.debug = false
config.assets.digest = false
end