Skip to content

Commit

Permalink
enable automatic env
Browse files Browse the repository at this point in the history
  • Loading branch information
taigrr committed Nov 1, 2023
1 parent ef12960 commit 9f33222
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 9f33222

Please sign in to comment.