fix port, models.GetConfig assignation to be cheked
This commit is contained in:
parent
6dddb43590
commit
2f2a3bf250
2
main.go
2
main.go
@ -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"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user