Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Added info on adding defaults when using env var in yaml
Signed-off-by: Huib Keemink <huib.keemink@jedlix.com>
  • Loading branch information
creativedutchmen committed Jun 15, 2022
commit aea5b0e476366de03bf44f39a30c878bf4134bf7
11 changes: 11 additions & 0 deletions docs/how-to-guides/running-feast-in-production.md
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,17 @@ online_store:
connection_string: ${REDIS_CONNECTION_STRING}
```

It is possible to set a default value if the environment variable is not set, with `${ENV_VAR:"default"}`. For instance:

```yaml
project: my_project
registry: data/registry.db
provider: local
online_store:
type: redis
connection_string: ${REDIS_CONNECTION_STRING:"0.0.0.0:6379"}
```

---
## Summary

Expand Down