customized binding address

This commit is contained in:
Fan Yang 2015-01-25 16:39:14 +08:00
parent 3b0010a60e
commit a9ece1c17c
1 changed files with 1 additions and 1 deletions

View File

@ -16,5 +16,5 @@ func main() {
if port = os.Getenv(PortVar); port == "" {
port = "8080"
}
beego.Run(":" + port)
beego.Run(beego.HttpAddr + ":" + port)
}