新增任务分类,杀死进程等

常驻任务和定时任务
常驻任务暂停时杀死进程
This commit is contained in:
郝大全
2017-06-30 15:49:33 +08:00
parent fbd1f9e1a7
commit 4d8e647523
10 changed files with 160 additions and 17 deletions

View File

@@ -5,6 +5,7 @@ import (
_ "github.com/george518/PPGo_Job/mail"
"github.com/george518/PPGo_Job/models"
_ "github.com/george518/PPGo_Job/routers"
"os"
)
const (
@@ -13,10 +14,14 @@ const (
func init() {
//初始化数据模型
beego.LoadAppConfig("ini", "src/github.com/george518/PPGo_Job/conf/app.conf")
PP_PATH,_ := os.Getwd()
CONFIG := PP_PATH + "/config/app.conf"
beego.LoadAppConfig("ini", CONFIG)
models.Init()
}
func main() {
beego.Run()
}
}