|
|
@ -128,7 +128,7 @@ type AppConfig struct {
|
|
|
|
|
|
|
|
|
|
|
|
func GetConf() (iniConf string, err error) {
|
|
|
|
func GetConf() (iniConf string, err error) {
|
|
|
|
if os.Getenv(model.MODE_ENV) != "" {
|
|
|
|
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
|
|
|
|
return
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|