add
This commit is contained in:
parent
9db01451e2
commit
8e6b8d65ac
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue