Skip to content

Commit aea5b0e

Browse files
Added info on adding defaults when using env var in yaml
Signed-off-by: Huib Keemink <huib.keemink@jedlix.com>
1 parent 2ba4e2e commit aea5b0e

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

docs/how-to-guides/running-feast-in-production.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -323,6 +323,17 @@ online_store:
323323
connection_string: ${REDIS_CONNECTION_STRING}
324324
```
325325
326+
It is possible to set a default value if the environment variable is not set, with `${ENV_VAR:"default"}`. For instance:
327+
328+
```yaml
329+
project: my_project
330+
registry: data/registry.db
331+
provider: local
332+
online_store:
333+
type: redis
334+
connection_string: ${REDIS_CONNECTION_STRING:"0.0.0.0:6379"}
335+
```
336+
326337
---
327338
## Summary
328339

0 commit comments

Comments
 (0)