fix port, models.GetConfig assignation to be cheked

This commit is contained in:
ycc 2024-10-16 08:42:51 +02:00
parent 6dddb43590
commit 2f2a3bf250

View File

@ -36,7 +36,7 @@ func main() {
// Normal beego init
beego.BConfig.AppName = appname
beego.BConfig.Listen.HTTPPort = models.GetConfig().Port
beego.BConfig.Listen.HTTPPort = o.GetIntDefault("port", 8080)
beego.BConfig.WebConfig.DirectoryIndex = true
beego.BConfig.WebConfig.StaticDir["/swagger"] = "swagger"