summaryrefslogtreecommitdiffstats
path: root/docs/content/doc/help
diff options
context:
space:
mode:
authorzeripath <art27@cantab.net>2022-11-10 01:22:31 +0000
committerGitHub <noreply@github.com>2022-11-09 20:22:31 -0500
commit99688ef994af34724a7120e97d09464297a673fe (patch)
treeecec24d6b8b903de102e951d12085f75239a7a5b /docs/content/doc/help
parent5a6cba4cf43f9e5be3ca4a3ffd8bfa351c92acbd (diff)
downloadgitea-99688ef994af34724a7120e97d09464297a673fe.tar.gz
gitea-99688ef994af34724a7120e97d09464297a673fe.zip
Attempt clarify AppWorkPath etc. (#21656)
Attempt clarify the AppWorkPath in the documentation by using different notation and adding a section to the start of the cheat sheet. Fix #21523 Signed-off-by: Andrew Thornton <art27@cantab.net> Signed-off-by: Andrew Thornton <art27@cantab.net>
Diffstat (limited to 'docs/content/doc/help')
-rw-r--r--docs/content/doc/help/faq.en-us.md30
1 files changed, 17 insertions, 13 deletions
diff --git a/docs/content/doc/help/faq.en-us.md b/docs/content/doc/help/faq.en-us.md
index a59abe8335..a92186334f 100644
--- a/docs/content/doc/help/faq.en-us.md
+++ b/docs/content/doc/help/faq.en-us.md
@@ -58,29 +58,33 @@ https://github.com/loganinak/MigrateGitlabToGogs
## Where does Gitea store what file
-- WorkPath
- - Environment variable `GITEA_WORK_DIR`
- - Else `--work-path` flag
+- _`AppWorkPath`_
+ - The `--work-path` flag
+ - Else Environment variable `GITEA_WORK_DIR`
+ - Else a built-in value set at build time
- Else the directory that contains the Gitea binary
-- AppDataPath (default for database, indexers, etc.)
+- `%(APP_DATA_PATH)` (default for database, indexers, etc.)
- `APP_DATA_PATH` from `app.ini`
- - Else `%(WorkPath)/data`
-- CustomPath (custom templates)
- - Environment variable `GITEA_CUSTOM`
- - Else `%(WorkPath)/custom`
+ - Else _`AppWorkPath`_`/data`
+- _`CustomPath`_ (custom templates)
+ - The `--custom-path` flag
+ - Else Environment variable `GITEA_CUSTOM`
+ - Else a built-in value set at build time
+ - Else _`AppWorkPath`_`/custom`
- HomeDir
- Unix: Environment variable `HOME`
- Windows: Environment variable `USERPROFILE`, else environment variables `HOMEDRIVE`+`HOMEPATH`
- RepoRootPath
- `ROOT` in the \[repository] section of `app.ini` if absolute
- - Else `%(AppWorkPath)/ROOT` if `ROOT` in the \[repository] section of `app.ini` if relative
- - Default `%(AppDataPath)/gitea-repositories`
+ - Else _`AppWorkPath`_`/ROOT` if `ROOT` in the \[repository] section of `app.ini` if relative
+ - Default `%(APP_DATA_PATH)/gitea-repositories`
- INI (config file)
- - `-c` flag
- - Else `%(CustomPath)/conf/app.ini`
+ - `--config` flag
+ - A possible built-in value set a build time
+ - Else _`CustomPath`_`/conf/app.ini`
- SQLite Database
- `PATH` in `database` section of `app.ini`
- - Else `%(AppDataPath)/gitea.db`
+ - Else `%(APP_DATA_PATH)/gitea.db`
## Not seeing a clone URL or the clone URL being incorrect