Skip to content

Commit

Permalink
Add note on 'UVICORN_' prefixed settings and '--env-file' (#1372)
Browse files Browse the repository at this point in the history
* Add note on 'UVICORN_' prefixed settings and '--env-file'

* Update settings.md

* Update settings.md
  • Loading branch information
tomchristie authored Feb 11, 2022
1 parent 90acede commit 5b0e3b9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions docs/settings.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ For example, in case you want to run the app on port `5000`, just set the enviro
!!! note
CLI options and the arguments for `uvicorn.run()` take precedence over environment variables.

Also note that `UVICORN_*` prefixed settings cannot be used from within an environment configuration file. Using an environment configuration file with the `--env-file` flag is intended for configuring the ASGI application that uvicorn runs, rather than configuring uvicorn itself.

## Application

Expand Down

0 comments on commit 5b0e3b9

Please # to comment.