Skip to content
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

Merged
merged 8 commits into from
May 14, 2019
Merged

Conversation

zeripath
Copy link
Contributor

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.

Makes it possible to set the work path as a CLI option instead of
relying on environment variables which are somewhat opaque
@zeripath zeripath added topic/deployment type/docs This PR mainly updates/creates documentation type/feature Completely new functionality. Can only be merged if feature freeze is not active. labels May 12, 2019
@zeripath zeripath added this to the 1.9.0 milestone May 12, 2019
@GiteaBot GiteaBot added the lgtm/need 1 This PR needs approval from one additional maintainer to be merged. label May 12, 2019
@techknowlogick
Copy link
Member

contrib/pr/checkout.go:46 needs to be updated, but otherwise this looks good.

@zeripath
Copy link
Contributor Author

Sorry this is turning into a game of whack-a-mole...

@codecov-io
Copy link

codecov-io commented May 13, 2019

Codecov Report

Merging #6922 into master will increase coverage by <.01%.
The diff coverage is 25%.

Impacted file tree graph

@@            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
Impacted Files Coverage Δ
modules/setting/setting.go 47.41% <25%> (-0.26%) ⬇️
modules/log/event.go 65.98% <0%> (+1.52%) ⬆️
models/unit.go 67.56% <0%> (+5.4%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 488d346...d8634e9. Read the comment docs.

@GiteaBot GiteaBot added lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. and removed lgtm/need 1 This PR needs approval from one additional maintainer to be merged. labels May 14, 2019
@techknowlogick techknowlogick merged commit e55c874 into go-gitea:master May 14, 2019
@zeripath zeripath deleted the add-work-path-option branch May 14, 2019 19:35
jeffliu27 pushed a commit to jeffliu27/gitea that referenced this pull request Jul 18, 2019
Makes it possible to set the work path as a CLI option instead of
relying on environment variables which are somewhat opaque
@go-gitea go-gitea locked and limited conversation to collaborators Nov 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. topic/deployment type/docs This PR mainly updates/creates documentation type/feature Completely new functionality. Can only be merged if feature freeze is not active.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants