feat(logic): 更新端口配置和启动参数
- 在 launch.json 中为 logic 服务添加 -port 参数 - 修改 config.go 中的 PortBL 配置,使用命令行参数 - 更新 main.go,解析命令行端口参数 - 移除 config.yaml 中的 port 配置项
This commit is contained in:
@@ -37,7 +37,7 @@ func newConfig() *sConfig {
|
||||
Name: GetCfgWithDefault(ctx, "server.name", g.NewVar("")).String(),
|
||||
Eps: GetCfgWithDefault(ctx, "blazing.eps", g.NewVar(false)).Bool(),
|
||||
Port: string(GetCfgWithDefault(ctx, "server.port", g.NewVar("8080")).String()),
|
||||
PortBL: string(GetCfgWithDefault(ctx, "blazing.port", g.NewVar("8080")).String()),
|
||||
//PortBL: string(GetCfgWithDefault(ctx, "blazing.port", g.NewVar("8080")).String()),
|
||||
File: &file{
|
||||
Mode: GetCfgWithDefault(ctx, "blazing.file.mode", g.NewVar("none")).String(),
|
||||
Domain: GetCfgWithDefault(ctx, "blazing.file.domain", g.NewVar("http://127.0.0.1:8300")).String(),
|
||||
|
||||
Reference in New Issue
Block a user