-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add work path CLI option #6922
Add work path CLI option #6922
Conversation
Makes it possible to set the work path as a CLI option instead of relying on environment variables which are somewhat opaque
|
Sorry this is turning into a game of whack-a-mole... |
Codecov Report
@@ Coverage Diff @@
## master #6922 +/- ##
=========================================
+ Coverage 41.4% 41.4% +<.01%
=========================================
Files 441 441
Lines 59729 59732 +3
=========================================
+ Hits 24730 24735 +5
+ Misses 31761 31757 -4
- Partials 3238 3240 +2
Continue to review full report at Codecov.
|
Makes it possible to set the work path as a CLI option instead of relying on environment variables which are somewhat opaque
As mentioned in #6855 the use of environment variables to configure gitea - although common practice - is confusing and frustrating for non-docker users. Environment variables are somewhat opaque to most users and can't easily be inferred from the command.
This PR adds a new option to the main command-line allowing you to set the work-path, overriding the GITEA_WORK_DIR variable and build defined AppWorkDir as necessary.