From 571f8a417c6f9a3b1d09642dd51d84594812f871 Mon Sep 17 00:00:00 2001 From: Adrian Hirt Date: Mon, 30 Oct 2023 13:45:01 +0100 Subject: [PATCH] Update text for config.public_file_server.enabled [ci-skip] Update the text for config.public_file_server.enabled in the configuring guide as PR #47137 turned on static file server by default for all environments. Co-authored-by: Jonathan Hefner --- guides/source/configuring.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/guides/source/configuring.md b/guides/source/configuring.md index 37fa47c2542fa..1a404f83a8442 100644 --- a/guides/source/configuring.md +++ b/guides/source/configuring.md @@ -500,7 +500,11 @@ The default value depends on the `config.load_defaults` target version: #### `config.public_file_server.enabled` -Configures Rails to serve static files from the public directory. This option defaults to `true`, but in the production environment it is set to `false` because the server software (e.g. NGINX or Apache) used to run the application should serve static files instead. If you are running or testing your app in production using WEBrick (it is not recommended to use WEBrick in production), set the option to `true`. Otherwise, you won't be able to use page caching and request for files that exist under the public directory. +Configures whether Rails should serve static files from the public directory. +Defaults to `true`. + +If the server software (e.g. NGINX or Apache) should serve static files instead, +set this value to `false`. #### `config.railties_order`