2017-10-18 06:16:33 +02:00
|
|
|
diff --git i/modules/setting/setting.go w/modules/setting/setting.go
|
|
|
|
index aafe2d1b..1e4a8064 100644
|
|
|
|
--- i/modules/setting/setting.go
|
|
|
|
+++ w/modules/setting/setting.go
|
2017-12-16 18:42:20 +01:00
|
|
|
@@ -730,7 +730,7 @@ func NewContext() {
|
2017-10-18 06:16:33 +02:00
|
|
|
LocalURL = sec.Key("LOCAL_ROOT_URL").MustString(defaultLocalURL)
|
|
|
|
OfflineMode = sec.Key("OFFLINE_MODE").MustBool()
|
|
|
|
DisableRouterLog = sec.Key("DISABLE_ROUTER_LOG").MustBool()
|
2017-12-16 18:42:20 +01:00
|
|
|
- StaticRootPath = sec.Key("STATIC_ROOT_PATH").MustString(AppWorkPath)
|
2017-10-18 06:16:33 +02:00
|
|
|
+ StaticRootPath = sec.Key("STATIC_ROOT_PATH").MustString("@data@")
|
2017-12-16 18:42:20 +01:00
|
|
|
AppDataPath = sec.Key("APP_DATA_PATH").MustString(path.Join(AppWorkPath, "data"))
|
2017-10-18 06:16:33 +02:00
|
|
|
EnableGzip = sec.Key("ENABLE_GZIP").MustBool()
|
|
|
|
EnablePprof = sec.Key("ENABLE_PPROF").MustBool(false)
|