add
This commit is contained in:
parent
be71d1b97e
commit
9db01451e2
|
@ -64,6 +64,8 @@ const PackageRootPath = "/app/wishpal-ironfan"
|
|||
|
||||
const MainConfigPath = PackageRootPath + "/etc/mix/mix-test.yaml"
|
||||
|
||||
const ProductionConfigPath = PackageRootPath + "/etc/mix/mix-prod.yaml"
|
||||
|
||||
const LocalConfigPath = "/Users/erwin/wishpal/wishpal-ironfan/etc/mix/mix-local.yaml"
|
||||
|
||||
const ReservedUserIdRegexesConfig = PackageRootPath + "/etc/mix/resource/reg_reserved_user_id_config.xml"
|
||||
|
|
|
@ -28,6 +28,9 @@ func main() {
|
|||
// 加载配置
|
||||
// 1.默认配置
|
||||
configPath := consts.MainConfigPath
|
||||
if os.Getenv("PROJECT_ENV") == "production" {
|
||||
configPath = consts.ProductionConfigPath
|
||||
}
|
||||
cfg := new(conf.ConfigSt)
|
||||
err := configcenter.LoadConfig(configPath, cfg)
|
||||
if err != nil {
|
||||
|
|
|
@ -50,7 +50,7 @@ alipay:
|
|||
apollo:
|
||||
app_id: "wishpal_live_service"
|
||||
cluster: "dev"
|
||||
ip: "http://localhost:8080"
|
||||
ip: "http://172.16.0.174:8080"
|
||||
namespace_name: "application,tag,account_init,platform,support_wx_id,version"
|
||||
secret: ""
|
||||
is_back_up_config: true
|
||||
|
|
Loading…
Reference in New Issue