summaryrefslogtreecommitdiffstats
path: root/routers
diff options
context:
space:
mode:
authorGuillaume Dube <guillaume.dube.girard@gmail.com>2017-11-03 04:56:20 -0400
committerLauris BH <lauris@nix.lv>2017-11-03 10:56:20 +0200
commit8798cf4e3ba30bc0bdea073bf273ac27b71b78ce (patch)
tree3dd0c3cc8c9448d1be0211a15b5c4094181fabed /routers
parent95637e046f4cca1ce6adc0eb7e03548034dedeac (diff)
downloadgitea-8798cf4e3ba30bc0bdea073bf273ac27b71b78ce.tar.gz
gitea-8798cf4e3ba30bc0bdea073bf273ac27b71b78ce.zip
Set session and indexers' data files rel to AppDataPath (#2192)
* Set session and indexers' data files rel to AppDataPath The setting AppDataPath is now relative to the working directory. The session svc's PROVIDER_CONFIG now defaults to AppDataPath/data/sessions. The issue indexer's IssuePath now defaults to AppDataPath/indexers/issues.bleves. * fix bug
Diffstat (limited to 'routers')
-rw-r--r--routers/init.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/routers/init.go b/routers/init.go
index 18a6d03d08..3ed5fc4f58 100644
--- a/routers/init.go
+++ b/routers/init.go
@@ -45,6 +45,8 @@ func NewServices() {
// GlobalInit is for global configuration reload-able.
func GlobalInit() {
setting.NewContext()
+ log.Trace("AppPath: %s", setting.AppPath)
+ log.Trace("AppWorkPath: %s", setting.AppWorkPath)
log.Trace("Custom path: %s", setting.CustomPath)
log.Trace("Log path: %s", setting.LogRootPath)
models.LoadConfigs()