diff --git a/cmd/app/main.go b/cmd/app/main.go index 84b7b16..a58aa75 100644 --- a/cmd/app/main.go +++ b/cmd/app/main.go @@ -41,6 +41,7 @@ func main() { viper.SetConfigName("config") viper.SetConfigType("toml") viper.AddConfigPath(".") + viper.AutomaticEnv() err = viper.ReadInConfig() if err != nil { fmt.Fprintf(os.Stderr, "viper read config error %s\n", err.Error())