Finish the install procedure.
This commit is contained in:
3
main.go
3
main.go
@ -14,16 +14,13 @@ func main() {
|
||||
rest.LOGGER.Init()
|
||||
defer rest.LOGGER.Destroy()
|
||||
|
||||
|
||||
//装载配置文件,这个决定了是否需要执行安装过程
|
||||
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