更新 'internal/config/app_config.go'

wp
耿阳 7 months ago
parent 6d25376712
commit 4124e0fd45

@ -128,7 +128,7 @@ 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/%s", os.Getenv(model.MODE_ENV), model.SERVER_DUBBOGO_CONFIG)); err != nil {
if err = os.Setenv(constant.ConfigFileEnvKey, fmt.Sprintf("./conf/%s", model.SERVER_DUBBOGO_CONFIG)); err != nil {
return
}
}

Loading…
Cancel
Save