Skip to content

Commit 571f8a4

Browse files
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 rails#47137 turned on static file server by default for all environments. Co-authored-by: Jonathan Hefner <[email protected]>
1 parent b897b4c commit 571f8a4

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

guides/source/configuring.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -500,7 +500,11 @@ The default value depends on the `config.load_defaults` target version:
500500

501501
#### `config.public_file_server.enabled`
502502

503-
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.
503+
Configures whether Rails should serve static files from the public directory.
504+
Defaults to `true`.
505+
506+
If the server software (e.g. NGINX or Apache) should serve static files instead,
507+
set this value to `false`.
504508

505509
#### `config.railties_order`
506510

0 commit comments

Comments
 (0)