diff --git a/internal/config/app_config.go b/internal/config/app_config.go index f7d5d31..70006de 100644 --- a/internal/config/app_config.go +++ b/internal/config/app_config.go @@ -128,11 +128,11 @@ type AppConfig struct { func GetConf() (iniConf string, err error) { if os.Getenv(model.MODE_ENV) != "" { - if err = os.Setenv(constant.ConfigFileEnvKey, fmt.Sprintf("./conf/%s", model.SERVER_DUBBOGO_CONFIG)); err != nil { + if err = os.Setenv(constant.ConfigFileEnvKey, fmt.Sprintf("./conf/%s%s", os.Getenv(model.MODE_ENV), model.SERVER_DUBBOGO_CONFIG)); err != nil { return } } - iniConf = fmt.Sprintf("./conf/%s/%s", os.Getenv(model.MODE_ENV), model.SERVER_CONFIG) + iniConf = fmt.Sprintf("./conf/%s", model.SERVER_CONFIG) return }