File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change 2222
2323 # Disable serving static files from the `/public` folder by default since
2424 # Apache or NGINX already handles this.
25- config . serve_static_files = ENV [ 'RAILS_SERVE_STATIC_FILES' ] . present?
25+ config . public_file_server . enabled = ENV [ 'RAILS_SERVE_STATIC_FILES' ] . present?
2626
2727 # Compress JavaScripts and CSS.
2828 config . assets . js_compressor = :uglifier
Original file line number Diff line number Diff line change 1313 config . eager_load = false
1414
1515 # Configure static file server for tests with Cache-Control for performance.
16- config . serve_static_files = true
16+ config . public_file_server . enabled = true
1717 config . static_cache_control = 'public, max-age=3600'
1818
1919 # Show full error reports and disable caching.
You can’t perform that action at this time.
0 commit comments