summaryrefslogtreecommitdiffstats
path: root/docs/content/doc/usage
diff options
context:
space:
mode:
authorzeripath <art27@cantab.net>2019-05-14 16:20:35 +0100
committertechknowlogick <techknowlogick@gitea.io>2019-05-14 11:20:35 -0400
commite55c874dd2a6162a374a9fac46c55db57bd17c5f (patch)
tree0af648181cfc9c59aededfe0b56de21e79baf1dc /docs/content/doc/usage
parent488d34691ad79bae13320f3e831a7ff46c245a89 (diff)
downloadgitea-e55c874dd2a6162a374a9fac46c55db57bd17c5f.tar.gz
gitea-e55c874dd2a6162a374a9fac46c55db57bd17c5f.zip
Add work path CLI option (#6922)
Makes it possible to set the work path as a CLI option instead of relying on environment variables which are somewhat opaque
Diffstat (limited to 'docs/content/doc/usage')
-rw-r--r--docs/content/doc/usage/command-line.en-us.md8
1 files changed, 6 insertions, 2 deletions
diff --git a/docs/content/doc/usage/command-line.en-us.md b/docs/content/doc/usage/command-line.en-us.md
index 9959ac30ab..ab52109e93 100644
--- a/docs/content/doc/usage/command-line.en-us.md
+++ b/docs/content/doc/usage/command-line.en-us.md
@@ -25,8 +25,12 @@ All global options can be placed at the command level.
- `--help`, `-h`: Show help text and exit. Optional.
- `--version`, `-v`: Show version and exit. Optional. (example: `Gitea version 1.1.0+218-g7b907ed built with: bindata, sqlite`).
-- `--custom-path path`, `-C path`: Location of the Gitea custom folder. Optional. (default: $PWD/custom).
-- `--config path`, `-c path`: Gitea configuration file path. Optional. (default: custom/conf/app.ini).
+- `--custom-path path`, `-C path`: Location of the Gitea custom folder. Optional. (default: `AppWorkPath`/custom or `$GITEA_CUSTOM`).
+- `--config path`, `-c path`: Gitea configuration file path. Optional. (default: `custom`/conf/app.ini).
+- `--work-path path`, `-w path`: Gitea `AppWorkPath`. Optional. (default: LOCATION_OF_GITEA_BINARY or `$GITEA_WORK_DIR`)
+
+NB: The defaults custom-path, config and work-path can also be
+changed at build time (if preferred).
### Commands