Add the frame for installation.
This commit is contained in:
7
main.go
7
main.go
@ -14,13 +14,16 @@ func main() {
|
||||
rest.LOGGER.Init()
|
||||
defer rest.LOGGER.Destroy()
|
||||
|
||||
//将运行时参数装填到config中去。
|
||||
rest.PrepareConfigs()
|
||||
|
||||
//装载配置文件,这个决定了是否需要执行安装过程
|
||||
rest.CONFIG.Init()
|
||||
|
||||
|
||||
//全局运行的上下文
|
||||
rest.CONTEXT.Init()
|
||||
defer rest.CONTEXT.Destroy()
|
||||
|
||||
|
||||
http.Handle("/", rest.CONTEXT.Router)
|
||||
|
||||
rest.LOGGER.Info("App started at http://localhost:%v", rest.CONFIG.ServerPort)
|
||||
|
Reference in New Issue
Block a user