Skip to content

Commit

Permalink
Update text for config.public_file_server.enabled [ci-skip]
Browse files Browse the repository at this point in the history
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 <jonathan@hefner.pro>
  • Loading branch information
Adrian-Hirt and jonathanhefner committed Oct 30, 2023
1 parent b897b4c commit 571f8a4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion guides/source/configuring.md
Expand Up @@ -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`

Expand Down

0 comments on commit 571f8a4

Please sign in to comment.