if template not exist
Showing
1 changed file
with
4 additions
and
1 deletions
| ... | @@ -220,6 +220,9 @@ func Run() { | ... | @@ -220,6 +220,9 @@ func Run() { |
| 220 | GlobalSessions, _ = session.NewManager(SessionProvider, SessionName, SessionGCMaxLifetime) | 220 | GlobalSessions, _ = session.NewManager(SessionProvider, SessionName, SessionGCMaxLifetime) |
| 221 | go GlobalSessions.GC() | 221 | go GlobalSessions.GC() |
| 222 | } | 222 | } |
| 223 | BuildTemplate(ViewsPath) | 223 | err := BuildTemplate(ViewsPath) |
| 224 | if err != nil { | ||
| 225 | Warn(err) | ||
| 226 | } | ||
| 224 | BeeApp.Run() | 227 | BeeApp.Run() |
| 225 | } | 228 | } | ... | ... |
-
Please register or sign in to post a comment