This commit is contained in:
lwl0608 2023-12-24 12:33:21 +08:00
parent 9db01451e2
commit 8e6b8d65ac
1 changed files with 4 additions and 4 deletions

View File

@ -27,10 +27,10 @@ import (
func main() {
// 加载配置
// 1.默认配置
configPath := consts.MainConfigPath
if os.Getenv("PROJECT_ENV") == "production" {
configPath = consts.ProductionConfigPath
}
configPath := consts.ProductionConfigPath
//if os.Getenv("PROJECT_ENV") == "production" {
// configPath = consts.ProductionConfigPath
//}
cfg := new(conf.ConfigSt)
err := configcenter.LoadConfig(configPath, cfg)
if err != nil {