Add back override with env variables

This commit is contained in:
Edvard 2019-01-29 17:09:08 +01:00
parent 1602100ed4
commit e4968c4a75

View File

@ -111,6 +111,9 @@ func initConfig() {
os.Exit(1) os.Exit(1)
} }
// Config values from environment overrides file
viper.AutomaticEnv()
if err := viper.ReadInConfig(); err == nil { if err := viper.ReadInConfig(); err == nil {
log.Printf("Using config file: %s\n\n", viper.ConfigFileUsed()) log.Printf("Using config file: %s\n\n", viper.ConfigFileUsed())
} else { } else {