]> source.dussan.org Git - gitea.git/commitdiff
bug fixed
authorLunny Xiao <xiaolunwen@gmail.com>
Wed, 26 Mar 2014 05:38:16 +0000 (13:38 +0800)
committerLunny Xiao <xiaolunwen@gmail.com>
Wed, 26 Mar 2014 05:38:16 +0000 (13:38 +0800)
update.go

index e98f1c84da2f0c12a75e51955c43e216a5054ca2..17a44dd1409621ee1367ff72f7fd509601ac81a4 100644 (file)
--- 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"))