diff --git a/bridge-history-api/cmd/api/app/app.go b/bridge-history-api/cmd/api/app/app.go index 2573ae8168..7c5e7e8aa3 100644 --- a/bridge-history-api/cmd/api/app/app.go +++ b/bridge-history-api/cmd/api/app/app.go @@ -66,7 +66,7 @@ func action(ctx *cli.Context) error { route.Route(router, cfg, registry) go func() { - port := utils.ServicePortFlag.Value + port := ctx.Int(utils.ServicePortFlag.Name) if runServerErr := router.Run(fmt.Sprintf(":%d", port)); runServerErr != nil { log.Crit("run http server failure", "error", runServerErr) }