1
0
mirror of https://github.com/astaxie/beego.git synced 2024-11-26 04:51:30 +00:00

if template not exist

This commit is contained in:
astaxie 2013-03-21 21:55:54 +08:00
parent e467a6ed91
commit 4ef5883f9e

View File

@ -220,6 +220,9 @@ func Run() {
GlobalSessions, _ = session.NewManager(SessionProvider, SessionName, SessionGCMaxLifetime) GlobalSessions, _ = session.NewManager(SessionProvider, SessionName, SessionGCMaxLifetime)
go GlobalSessions.GC() go GlobalSessions.GC()
} }
BuildTemplate(ViewsPath) err := BuildTemplate(ViewsPath)
if err != nil {
Warn(err)
}
BeeApp.Run() BeeApp.Run()
} }