OSDN Git Service

fix:play editor close
[pettanr/pettanr.git] / config / environments / production.rb
index b80671e..12104b0 100644 (file)
@@ -1,5 +1,6 @@
 Pettanr::Application.configure do
   # Settings specified here will take precedence over those in config/application.rb
+config.assets.precompile += %w( *.css *.js )
 
   # Code is not reloaded between requests
   config.cache_classes = true
@@ -9,7 +10,10 @@ Pettanr::Application.configure do
   config.action_controller.perform_caching = true
 
   # Disable Rails's static asset server (Apache or nginx will already do this)
-  config.serve_static_assets = false
+
+# assets files can't find at production mode
+# http://blog.livedoor.jp/maru_tak/archives/51247889.html
+#config.serve_static_assets = false
 
   # Compress JavaScripts and CSS
   config.assets.compress = true