This commit is contained in:
lwl0608 2023-12-24 11:59:24 +08:00
parent be71d1b97e
commit 9db01451e2
3 changed files with 6 additions and 1 deletions

View File

@ -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"

View File

@ -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 {

View File

@ -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