-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
HMS-2606 fix: Fix config loading from env (part 2)
Fix 065eb0c was wrong. `v.AutomaticEnv` is required. It turned out that the root cause of the issue was Makefile's env var `APP`. It conflicts with Viper's map structure `app`. Due to `APP=idmsvc`, Viper resets the entire `Config.Application` struct to empty defaults, then applies additioanl env var settings. Fix: - Rename Makefile variable and export from `APP` to `APP_NAME` - Enable automatic env again Signed-off-by: Christian Heimes <[email protected]>
- Loading branch information
Showing
4 changed files
with
32 additions
and
20 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
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