diff options
Diffstat (limited to 'cmd/serve.go')
-rw-r--r-- | cmd/serve.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cmd/serve.go b/cmd/serve.go index ec1da3beef..57677704c6 100644 --- a/cmd/serve.go +++ b/cmd/serve.go @@ -37,7 +37,7 @@ var CmdServ = cli.Command{ } func setup(logPath string) { - setting.NewConfigContext() + setting.NewContext() log.NewGitLogger(filepath.Join(setting.LogRootPath, logPath)) if setting.DisableSSH { @@ -45,9 +45,9 @@ func setup(logPath string) { os.Exit(1) } - models.LoadModelsConfig() + models.LoadConfigs() - if setting.UseSQLite3 { + if setting.UseSQLite3 || setting.UseTiDB { workDir, _ := setting.WorkDir() os.Chdir(workDir) } |