1
0
Fork 0
mirror of https://git.envs.net/envs/ifconfig synced 2024-05-09 05:26:02 +02:00
ifconfig/main.go
2019-09-13 22:48:37 +02:00

22 lines
319 B
Go

package main
import (
"os"
"github.com/astaxie/beego"
_ "github.com/envs-net/ifconfig/routers"
)
const (
HostVar = "VCAP_APP_HOST"
PortVar = "VCAP_APP_PORT"
)
func main() {
var port string
if port = os.Getenv(PortVar); port == "" {
port = "8080"
}
beego.Run(beego.BConfig.Listen.HTTPAddr + ":" + port)
}