aboutsummaryrefslogtreecommitdiffstats
path: root/services/convert/issue_comment.go
diff options
context:
space:
mode:
authorwxiaoguang <wxiaoguang@gmail.com>2023-07-10 16:26:07 +0800
committerGitHub <noreply@github.com>2023-07-10 08:26:07 +0000
commit5489962aac6faf3260176a0f53cbb78c44c421a5 (patch)
tree6478c7d6b525fd59c56232757a5641066ceaf245 /services/convert/issue_comment.go
parentd9872797f84f6a81bbed3d19fee536ce2a3aadb6 (diff)
downloadgitea-5489962aac6faf3260176a0f53cbb78c44c421a5.tar.gz
gitea-5489962aac6faf3260176a0f53cbb78c44c421a5.zip
Fix WORK_DIR for docker (root) image (#25738)
Fix #25726 #17846 chose an incorrect WORK_DIR path for docker root image. Gitea's work-path was already used as the base path for various paths (like AppDataPath), so, the work-path should be mounted to a volume in a docker image. Now, for docker root image, it's unavoidable to mix the WorkPath/CustomPath/AppDataPath in the same directory ("/data/gitea"), because some of them have already been mixed. Some directories in the screenshot are for "CustomPath" , while others are for "AppDataPath", due to the technical debts in old code: ``` CUSTOM_PATH="/data/gitea" APP_DATA_PATH = /data/gitea ``` <details> ![image](https://github.com/go-gitea/gitea/assets/2114189/9f0648ac-f731-4a08-9f26-1af01a1824b1) </details> This PR is breaking but this is the only way at the moment to avoid users losing their data accidently Co-authored-by: Giteabot <teabot@gitea.io>
Diffstat (limited to 'services/convert/issue_comment.go')
0 files changed, 0 insertions, 0 deletions