summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorDavid Gay <david@davidgay.org>2021-06-07 22:43:33 -0400
committerDavid Gay <david@davidgay.org>2021-06-07 22:43:33 -0400
commit1d3de6afb2f8312fcc1e16e649cdc9a76e5ed8c7 (patch)
tree1cb47c8f560a9584d90413cf176723947ba6e23d /config
parentfbf84e869cec1ce7d3b775aa35509b5f1ad60455 (diff)
Looks like this is actually the correct setting to serve public assets, at least these days
Diffstat (limited to 'config')
-rw-r--r--config/environments/production.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/config/environments/production.rb b/config/environments/production.rb
index 0100c2d..52c98d2 100644
--- a/config/environments/production.rb
+++ b/config/environments/production.rb
@@ -22,8 +22,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.serve_static_assets = true
+ config.public_file_server.enabled = true
# Compress CSS using a preprocessor.
# config.assets.css_compressor = :sass