diff --git a/main.go b/main.go index 807c97d..3a49b3b 100644 --- a/main.go +++ b/main.go @@ -26,7 +26,7 @@ func main() { ) // Beego init beego.BConfig.AppName = appname - beego.BConfig.Listen.HTTPPort = 8080 + beego.BConfig.Listen.HTTPPort = o.GetIntDefault("port", 8080) beego.BConfig.WebConfig.DirectoryIndex = true beego.BConfig.WebConfig.StaticDir["/swagger"] = "swagger" //}