mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-05-16 23:12:43 +00:00
simplify names
This commit is contained in:
parent
a517cfdf7b
commit
e75fd2f783
9 changed files with 240 additions and 234 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue