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