From 87eb2c3665fa5f526255fe57cb36d33fa3640af7 Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Wed, 26 Mar 2014 13:38:16 +0800 Subject: [PATCH] bug fixed --- update.go | 3 +++ 1 file changed, 3 insertions(+) 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"))