summaryrefslogtreecommitdiffstats
path: root/update.go
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2014-03-26 13:38:16 +0800
committerLunny Xiao <xiaolunwen@gmail.com>2014-03-26 13:38:16 +0800
commit87eb2c3665fa5f526255fe57cb36d33fa3640af7 (patch)
tree05daea3b441b4f370dca4b6a0ec67637dfa5fdaa /update.go
parent9750d5ed160c11f0e7dc33849c7935db950b39dd (diff)
downloadgitea-87eb2c3665fa5f526255fe57cb36d33fa3640af7.tar.gz
gitea-87eb2c3665fa5f526255fe57cb36d33fa3640af7.zip
bug fixed
Diffstat (limited to 'update.go')
-rw-r--r--update.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/update.go b/update.go
index e98f1c84da..17a44dd140 100644
--- a/update.go
+++ b/update.go
@@ -30,6 +30,9 @@ gogs serv provide access auth for repositories`,
// for command: ./gogs update
func runUpdate(c *cli.Context) {
+ base.NewConfigContext()
+ models.LoadModelsConfig()
+ models.NewEngine()
//level := "0"
//os.MkdirAll("log", os.ModePerm)
//log.NewLogger(10000, "file", fmt.Sprintf(`{"level":%s,"filename":"%s"}`, level, "log/serv.log"))