From e40f6ededcb2f65511ef236518c78086e613dbeb Mon Sep 17 00:00:00 2001 From: Devin Howard Date: Sun, 25 Oct 2015 17:09:57 +0800 Subject: [PATCH] environment assets config --- config/environments/development.rb | 4 ---- config/environments/production.rb | 2 +- config/environments/test.rb | 6 ++++++ 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/config/environments/development.rb b/config/environments/development.rb index c4d3540e..cd440097 100644 --- a/config/environments/development.rb +++ b/config/environments/development.rb @@ -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 diff --git a/config/environments/production.rb b/config/environments/production.rb index a515b4ca..192f631d 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -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 diff --git a/config/environments/test.rb b/config/environments/test.rb index 18c17296..73003840 100644 --- a/config/environments/test.rb +++ b/config/environments/test.rb @@ -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