Files
ppgo_job/main.go

30 lines
457 B
Go
Raw Normal View History

2017-06-23 12:24:42 +08:00
package main
import (
"github.com/astaxie/beego"
2017-06-23 13:48:58 +08:00
_ "github.com/george518/PPGo_Job/mail"
"github.com/george518/PPGo_Job/models"
_ "github.com/george518/PPGo_Job/routers"
"os"
2017-07-05 16:21:38 +08:00
"github.com/george518/PPGo_Job/jobs"
2017-06-23 12:24:42 +08:00
)
const (
VERSION = "1.0.0"
)
func init() {
//初始化数据模型
PP_PATH,_ := os.Getwd()
CONFIG := PP_PATH + "/config/app.conf"
beego.LoadAppConfig("ini", CONFIG)
2017-06-23 12:24:42 +08:00
models.Init()
2017-07-05 16:21:38 +08:00
jobs.InitJobs()
2017-06-23 12:24:42 +08:00
}
func main() {
beego.Run()
}