From befadb8bf67b25db351b4be130ce6f88a37da010 Mon Sep 17 00:00:00 2001 From: Valdemar Lubenets Date: Wed, 17 Mar 2021 17:03:16 +0200 Subject: [PATCH] Viper env now has the SEASTAT prefix --- cmd/root.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/root.go b/cmd/root.go index 59d5dad..a12fed7 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -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.