forked from LukeMathWalker/pavex
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Explain how to set configuration values via env variables. (LukeMathW…
…alker#207) In particular, allow setting single fields of a nested configuration struct using `split`.
- Loading branch information
1 parent
6bdad64
commit 12c2ca9
Showing
3 changed files
with
7 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,5 @@ | ||
APP_PROFILE=dev | ||
APP_PROFILE=dev | ||
# All env variables must be prefixed with `APP_` to be picked up at runtime. | ||
# To set a nested field you need to use `__` as separator. | ||
# For example, to set `Config.server.port` via an env variable | ||
# it'd have to be named `APP_SERVER__PORT`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters