Skip to content

Commit

Permalink
Viper env now has the SEASTAT prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
Valdemar Lubenets committed Mar 17, 2021
1 parent 585297f commit befadb8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ func initConfig() {
viper.SetConfigFile(cfgFile)
}

viper.SetEnvPrefix("SEASTAT")
viper.AutomaticEnv() // read in environment variables that match

// If a config file is found, read it in.
Expand Down

0 comments on commit befadb8

Please sign in to comment.