Skip to content

feat: add the ability to override config with env var#25

Merged
jorgeantonio21 merged 3 commits intomainfrom
add-env-to-config
Nov 11, 2024
Merged

feat: add the ability to override config with env var#25
jorgeantonio21 merged 3 commits intomainfrom
add-env-to-config

Conversation

@Cifko
Copy link
Collaborator

@Cifko Cifko commented Nov 8, 2024

The config of atoma_service and atoma_state can now be overwritten with env var.
E.g. ATOMA_STATE__DATABASE_URL will overwrite

[atoma_state]
database_url=""

ATOMA_SERVICE__HF_TOKEN will overwrite

[atoma_service]
hf_token = ""

@Cifko Cifko force-pushed the add-env-to-config branch from 6b05d1e to f19c1dc Compare November 11, 2024 14:32
@Cifko Cifko requested a review from jorgeantonio21 November 11, 2024 17:08
Copy link
Contributor

@jorgeantonio21 jorgeantonio21 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jorgeantonio21 jorgeantonio21 merged commit 7986732 into main Nov 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants