change /etc path

v0.1.2 v0.1.2
Vernon Keenan 2021-11-20 13:59:05 -08:00
parent 7838d52d14
commit e59e67381e
1 changed files with 1 additions and 1 deletions

View File

@ -32,7 +32,7 @@ func InitConfig(systemName string, initalLogLevel zapcore.Level) {
sugar.Infof("app.InitConfig: 📥 %s", systemName)
appViper.SetConfigType("yaml")
appViper.SetConfigName(systemName)
appViper.AddConfigPath("/etc/kvision")
appViper.AddConfigPath("/etc/vernonkeenan")
appViper.SetEnvKeyReplacer(strings.NewReplacer(".", "_"))
appViper.SetEnvPrefix("kvision")
appViper.AutomaticEnv() // read in environment variables that match