Skip to content

Commit

Permalink
Update Viper to read from env var
Browse files Browse the repository at this point in the history
  • Loading branch information
cant-code committed Mar 25, 2024
1 parent eaf5c3a commit e053eca
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/configurations/config-setup.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ func LoadConfig() (Config, error) {
conf.SetConfigName("config")
conf.SetConfigType("yml")
conf.AddConfigPath(".")
conf.AutomaticEnv()

if err := conf.ReadInConfig(); err != nil {
return Config{}, err
Expand Down

0 comments on commit e053eca

Please sign in to comment.