diff options
Diffstat (limited to 'cmd/serv.go')
-rw-r--r-- | cmd/serv.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cmd/serv.go b/cmd/serv.go index 4e3b9de2f9..5dc3785852 100644 --- a/cmd/serv.go +++ b/cmd/serv.go @@ -50,9 +50,9 @@ func setup(logPath string) error { models.LoadConfigs() if setting.UseSQLite3 || setting.UseTiDB { - workDir, _ := setting.WorkDir() - if err := os.Chdir(workDir); err != nil { - log.GitLogger.Fatal(4, "Failed to change directory %s: %v", workDir, err) + workPath := setting.AppWorkPath + if err := os.Chdir(workPath); err != nil { + log.GitLogger.Fatal(4, "Failed to change directory %s: %v", workPath, err) } } |