diff options
author | wxiaoguang <wxiaoguang@gmail.com> | 2023-07-19 17:22:57 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-19 11:22:57 +0200 |
commit | 50e14699d3951ece4b9eb3f72cb266056e799f63 (patch) | |
tree | 28422db0087248b2144d7e137de2c46957107388 /docs/content/doc/help/faq.en-us.md | |
parent | 06df92b5af1afaedf3883c6aaf2ce9d219cbd089 (diff) | |
download | gitea-50e14699d3951ece4b9eb3f72cb266056e799f63.tar.gz gitea-50e14699d3951ece4b9eb3f72cb266056e799f63.zip |
Update path related documents (#25417)
Update WorkPath/WORK_PATH related documents, remove out-dated
information.
Remove "StaticRootPath" on the admin config display page, because few
end user really need it, it only causes misconfiguration.

Co-authored-by: Giteabot <teabot@gitea.io>
Diffstat (limited to 'docs/content/doc/help/faq.en-us.md')
-rw-r--r-- | docs/content/doc/help/faq.en-us.md | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/docs/content/doc/help/faq.en-us.md b/docs/content/doc/help/faq.en-us.md index d0c4de61f5..5a2cafba49 100644 --- a/docs/content/doc/help/faq.en-us.md +++ b/docs/content/doc/help/faq.en-us.md @@ -59,11 +59,12 @@ https://github.com/loganinak/MigrateGitlabToGogs ## Where does Gitea store what file - _`AppWorkPath`_ - - The `--work-path` flag + - The `WORK_PATH` option in `app.ini` + - Else 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 -- `%(APP_DATA_PATH)` (default for database, indexers, etc.) +- `AppDataPath` (default for database, indexers, etc.) - `APP_DATA_PATH` from `app.ini` - Else _`AppWorkPath`_`/data` - _`CustomPath`_ (custom templates) @@ -112,9 +113,6 @@ Gitea's custom templates must be added to the correct location or Gitea will not The correct path for the template(s) will be relative to the `CustomPath` 1. To find `CustomPath`, look for Custom File Root Path in Site Administration -> Configuration - - If that doesn't exist, you can try `echo $GITEA_CUSTOM` - 2. If you are still unable to find a path, the default can be [calculated above](#where-does-gitea-store-what-file) 3. Once you have figured out the correct custom path, you can refer to the [customizing Gitea]({{< relref "doc/administration/customizing-gitea.en-us.md" >}}) page to add your template to the correct location. |