Static configuration for root directory #927

Closed
opened 2025-11-02 03:41:58 -06:00 by GiteaMirror · 5 comments
Owner

Originally created by @MTecknology on GitHub (Jul 30, 2017).

At the moment, it seems like gitea gets a little bit confused when trying to find configuration data. Sometimes it'll look for a file at ${binpath}/${foo} (/usr/bin/gitea/custom/...) and other times it'll try ${pwd}/${foo}.

It would be ideal if we could have a build-time (and run-time) argument to configure a base path. This variable would make it very easy to handle a wide variety of deployments and would provide a fair amount of consistency for locating files.

Something like this would probably make #2228 a moot (but still valid) issue.

Originally created by @MTecknology on GitHub (Jul 30, 2017). At the moment, it seems like gitea gets a little bit confused when trying to find configuration data. Sometimes it'll look for a file at ${binpath}/${foo} (/usr/bin/gitea/custom/...) and other times it'll try ${pwd}/${foo}. It would be ideal if we could have a build-time (and run-time) argument to configure a base path. This variable would make it very easy to handle a wide variety of deployments and would provide a fair amount of consistency for locating files. Something like this would probably make #2228 a moot (but still valid) issue.
Author
Owner

@lafriks commented on GitHub (Jul 30, 2017):

I think #2192 fixes this

@lafriks commented on GitHub (Jul 30, 2017): I think #2192 fixes this
Author
Owner

@MTecknology commented on GitHub (Jul 30, 2017):

If that fixes it, then documentation will definitely be needed.

@MTecknology commented on GitHub (Jul 30, 2017): If that fixes it, then documentation will definitely be needed.
Author
Owner

@lafriks commented on GitHub (Jul 30, 2017):

It fixes that all files are written to custom_directory etc it won't write to pwd if customdir is specified

@lafriks commented on GitHub (Jul 30, 2017): It fixes that all files are written to custom_directory etc it won't write to pwd if customdir is specified
Author
Owner

@mckaygerhard commented on GitHub (Sep 20, 2017):

curently changes get approved but now has conflicts and are not merged yet!

also this change the behaviour of the app.ini paths configs!

many documentations will be afected, also some preparation are need!

@mckaygerhard commented on GitHub (Sep 20, 2017): curently changes get approved but now has conflicts and are not merged yet! also this change the behaviour of the app.ini paths configs! many documentations will be afected, also some preparation are need!
Author
Owner

@MTecknology commented on GitHub (Sep 22, 2017):

@lafriks Sorry, I haven't followed up on this. I'll close and re-open if needed.

@MTecknology commented on GitHub (Sep 22, 2017): @lafriks Sorry, I haven't followed up on this. I'll close and re-open if needed.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#927