1 Star 0 Fork 31

akira / elk-blog

forked from 杰克 / elk-blog 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
main.go 541 Bytes
一键复制 编辑 Web IDE 原始数据 按行查看 历史
package main
import (
// "gitee.com/jikey/elk-blog/app/service"
"gitee.com/jikey/elk-blog/app/model"
"gitee.com/jikey/elk-blog/routers"
"gitee.com/jikey/elk-blog/setting"
"github.com/sirupsen/logrus"
"time"
)
// 初始化应用
func init() {
// 设置时区
timelocal, _ := time.LoadLocation("Asia/Shanghai")
time.Local = timelocal
router := routers.RouterApp()
_ = router.Run(setting.Config.Server.Port)
// 设置日志级别
logrus.SetLevel(logrus.DebugLevel)
logrus.Info("App start")
}
func main() {
model.CloseDB()
}
Go
1
https://gitee.com/idart/elk-blog.git
git@gitee.com:idart/elk-blog.git
idart
elk-blog
elk-blog
master

搜索帮助

14c37bed 8189591 565d56ea 8189591