refactor: 启用 conf.UseEnv 并将 etc 配置统一为 env 占位
This commit is contained in:
@@ -20,7 +20,7 @@ func main() {
|
||||
flag.Parse()
|
||||
|
||||
var c config.Config
|
||||
conf.MustLoad(*configFile, &c)
|
||||
conf.MustLoad(*configFile, &c, conf.UseEnv())
|
||||
svcCtx := svc.NewServiceContext(c)
|
||||
|
||||
handler := chathandler.NewHandler(svcCtx)
|
||||
|
||||
Reference in New Issue
Block a user