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:
parent
6f3f3ec0f2
commit
4a19e9c90b
7 changed files with 17 additions and 9 deletions
|
@ -1,5 +1,5 @@
|
|||
RUN_MODE = prod
|
||||
WORK_PATH = ${WORK_PATH}
|
||||
WORK_PATH = forgejo-work-path
|
||||
|
||||
[server]
|
||||
APP_DATA_PATH = ${WORK_PATH}/elsewhere
|
||||
|
|
Loading…
Add table
Reference in a new issue