mirror of
https://github.com/astaxie/beego.git
synced 2024-11-04 21:20:54 +00:00
if template not exist
This commit is contained in:
parent
e467a6ed91
commit
4ef5883f9e
5
beego.go
5
beego.go
@ -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()
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user