summaryrefslogtreecommitdiffstats
path: root/serve.go
diff options
context:
space:
mode:
authorUnknown <joe2010xtmf@163.com>2014-03-21 03:36:26 -0400
committerUnknown <joe2010xtmf@163.com>2014-03-21 03:36:26 -0400
commitc2816afe9c60922b3468cece689c84e52e0ba11c (patch)
treea3acef30f204abf997ca75dab7b849e54384a28f /serve.go
parentc1576b4c400376f22ec25012a6ca66e9c5539ee4 (diff)
downloadgitea-c2816afe9c60922b3468cece689c84e52e0ba11c.tar.gz
gitea-c2816afe9c60922b3468cece689c84e52e0ba11c.zip
Bug fix
Diffstat (limited to 'serve.go')
-rw-r--r--serve.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/serve.go b/serve.go
index 2a17a33490..3ce8f9046c 100644
--- 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")