From fbe97485e9196dab75acb05254be20667e38ce28 Mon Sep 17 00:00:00 2001 From: James Mason Date: Tue, 17 Jun 2014 10:57:16 -0700 Subject: [PATCH] Allow Rails to serve static assets by default, in production mode... ... in order to allow running successfully in production mode locally via `rails s -e production` --- config/environments/production.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/config/environments/production.rb b/config/environments/production.rb index 2a2254f1..5db619f2 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -14,8 +14,9 @@ Osem::Application.configure do # Rake tasks automatically ignore this option for performance. config.eager_load = true - # Disable Rails's static asset server (Apache or nginx will already do this) - config.serve_static_assets = false + # Enable Rails's static asset server + # Set to false if serving directly through your web server, or using an asset host + config.serve_static_assets = true # Compress JavaScripts and CSS config.assets.compress = true