simplify names

This commit is contained in:
Unknwon 2015-09-16 23:08:46 -04:00
parent a517cfdf7b
commit e75fd2f783
9 changed files with 240 additions and 234 deletions

View file

@ -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)
}