This commit is contained in:
刘河
2019-02-17 19:36:48 +08:00
parent 7a8cb3d5b6
commit 9f03c2f6eb
13 changed files with 183 additions and 65 deletions

View File

@@ -12,6 +12,8 @@ import (
"github.com/cnlh/nps/vender/github.com/astaxie/beego"
_ "github.com/cnlh/nps/web/routers"
"log"
"net/http"
_ "net/http/pprof"
"os"
"path/filepath"
)
@@ -38,6 +40,9 @@ func main() {
return
}
}
go func() {
http.ListenAndServe("0.0.0.0:8899", nil)
}()
if *logType == "stdout" {
lg.InitLogFile("nps", true, common.GetLogPath())
} else {