From 9f33222828b31282199358517fbafa2579a649e2 Mon Sep 17 00:00:00 2001 From: Tai Groot Date: Wed, 1 Nov 2023 13:23:05 -0700 Subject: [PATCH] enable automatic env --- config/config.go | 1 + 1 file changed, 1 insertion(+) diff --git a/config/config.go b/config/config.go index e732e5b..7134bd6 100644 --- a/config/config.go +++ b/config/config.go @@ -71,6 +71,7 @@ func LoadConfig(binary string) { viper.SetConfigName("sprout") viper.AddConfigPath("/etc/grlx/") } + viper.AutomaticEnv() err := viper.ReadInConfig() if _, ok := err.(viper.ConfigFileNotFoundError); ok {