[QUESTION] - How would I Read from multiple config files and environment variables? #1524
Unanswered
sujit-baniya
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I've come across a use case where I've to use multiple config files
.json,.envand environment variables in such a way..jsonis loaded.envis loaded. Empty variables on.envor non-existing variables wouldn't override values from.json.envor non-existing variables wouldn't override values from.jsonFor the same purpose, I tried with following snippet but doesn't seem to work.
{ "database": { "connectionUri": "test uri" }, "server": { "port": 8283 } }Expected result:
Actual result:
Is it possible to attain as mentioned? If so, how could I achieve the functionality
Beta Was this translation helpful? Give feedback.
All reactions