From 9b794f1b1482cdf2ce1144d5a06e30569cb15ced Mon Sep 17 00:00:00 2001 From: Adam Cooke Date: Wed, 26 Apr 2017 23:05:51 +0100 Subject: [PATCH] enable the public file server for static assets --- config/environments/production.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/environments/production.rb b/config/environments/production.rb index 46dd8a8..0a479f6 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -16,7 +16,7 @@ Rails.application.configure do # Disable serving static files from the `/public` folder by default since # Apache or NGINX already handles this. - config.public_file_server.enabled = ENV['RAILS_SERVE_STATIC_FILES'].present? + config.public_file_server.enabled = true # Compress JavaScripts and CSS. config.assets.js_compressor = :uglifier