aboutsummaryrefslogtreecommitdiff
path: root/cmd/web.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/web.go')
-rw-r--r--cmd/web.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/cmd/web.go b/cmd/web.go
index 8a87f86b..f226e76e 100644
--- a/cmd/web.go
+++ b/cmd/web.go
@@ -50,6 +50,7 @@ and it takes care of all the other things for you`,
// checkVersion checks if binary matches the version of templates files.
func checkVersion() {
+ // Templates.
data, err := ioutil.ReadFile(path.Join(setting.StaticRootPath, "templates/.VERSION"))
if err != nil {
log.Fatal(4, "Fail to read 'templates/.VERSION': %v", err)
@@ -57,6 +58,11 @@ func checkVersion() {
if string(data) != setting.AppVer {
log.Fatal(4, "Binary and template file version does not match, did you forget to recompile?")
}
+
+ // Macaron.
+ if macaron.Version() != "0.1.8.0927" {
+ log.Fatal(4, "Macaron version does not match, did you forget to update?(github.com/Unknwon/macaron)")
+ }
}
// newMacaron initializes Macaron instance.