]> source.dussan.org Git - gitea.git/commitdiff
Bug fix
authorUnknown <joe2010xtmf@163.com>
Fri, 21 Mar 2014 07:36:26 +0000 (03:36 -0400)
committerUnknown <joe2010xtmf@163.com>
Fri, 21 Mar 2014 07:36:26 +0000 (03:36 -0400)
serve.go

index 2a17a334901e82521f19759fe0442941f5b9a582..3ce8f9046cb0e4b34a24810bdbecd78f89b94dc0 100644 (file)
--- a/serve.go
+++ b/serve.go
@@ -45,6 +45,10 @@ func In(b string, sl map[string]int) bool {
 }
 
 func runServ(*cli.Context) {
+       base.NewConfigContext()
+       models.LoadModelsConfig()
+       models.NewEngine()
+
        keys := strings.Split(os.Args[2], "-")
        if len(keys) != 2 {
                fmt.Println("auth file format error")