lib: get the base of WORK_PATH from app.ini

instead of hardcoding forgejo-work-path to be the base of WORK_PATH
relative to DIR, read it from the app.ini file. It will allow
multiple Forgejo instances to run simultaneously, each using a
different directory.
This commit is contained in:
Earl Warren 2024-06-04 12:00:42 +02:00
parent 6f3f3ec0f2
commit 4a19e9c90b
No known key found for this signature in database
GPG key ID: 0579CB2928A78A00
7 changed files with 17 additions and 9 deletions

View file

@ -1,5 +1,5 @@
RUN_MODE = prod
WORK_PATH = ${WORK_PATH}
WORK_PATH = forgejo-work-path
[server]
APP_DATA_PATH = ${WORK_PATH}/data