示例#1
0
文件: main.go 项目: eraserxp/coedit
func main() {
	//run the websocket proxy
	//startWebsocketProxy()
	beego.AddAPPStartHook(hook)

	//run the web server to serve the static files
	beego.BConfig.WebConfig.StaticDir["/doc/static"] = "static"
	fmt.Println("write into database")

	//set session

	beego.Run()
}
示例#2
0
文件: hooks.go 项目: cokeboL/mandela
func init() {
	operation = new(Operation)

	beego.AddAPPStartHook(operation.Run)
}