From 4d7c8f949b5bb0fd6ac02f456a1fa5f20c80c6c8 Mon Sep 17 00:00:00 2001 From: Ricky Barrette Date: Sun, 20 Jan 2013 11:23:11 -0500 Subject: [PATCH] Fixed assets serving --- config/application.rb | 2 ++ config/environments/production.rb | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/config/application.rb b/config/application.rb index ba744cf..405caba 100644 --- a/config/application.rb +++ b/config/application.rb @@ -58,5 +58,7 @@ module Community # Version of your assets, change this if you want to expire all your assets config.assets.version = '1.0' + + config.assets.precompile += ['*.css', '*.js'] end end diff --git a/config/environments/production.rb b/config/environments/production.rb index ae07b47..6148edc 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -9,7 +9,7 @@ Community::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 + config.serve_static_assets = true # Compress JavaScripts and CSS config.assets.compress = true