1
0
mirror of https://git.envs.net/envs/ifconfig synced 2024-11-26 06:33:46 +01:00
ifconfig/main.go

21 lines
303 B
Go
Raw Normal View History

2014-08-14 08:15:52 +02:00
package main
import (
"github.com/astaxie/beego"
2014-12-23 02:55:28 +01:00
_ "github.com/missdeer/ifconfig/routers"
2014-08-14 08:15:52 +02:00
"os"
)
const (
HostVar = "VCAP_APP_HOST"
PortVar = "VCAP_APP_PORT"
)
func main() {
var port string
if port = os.Getenv(PortVar); port == "" {
port = "8080"
}
2015-01-25 09:39:14 +01:00
beego.Run(beego.HttpAddr + ":" + port)
2014-08-14 08:15:52 +02:00
}