Add back override with env variables
This commit is contained in:
parent
1602100ed4
commit
e4968c4a75
@ -111,6 +111,9 @@ func initConfig() {
|
||||
os.Exit(1)
|
||||
}
|
||||
|
||||
// Config values from environment overrides file
|
||||
viper.AutomaticEnv()
|
||||
|
||||
if err := viper.ReadInConfig(); err == nil {
|
||||
log.Printf("Using config file: %s\n\n", viper.ConfigFileUsed())
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user