-
-
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
Move conf/app.ini -> custom/conf/app.ini.sample #1522
Conversation
No. This will break all instances. |
@lunny How? That's not what I have been told. |
Maybe you are right. It seems Gitea will not read |
Think it was changed in this PR #354 |
How about renaming the |
Renamed to |
If you did in code please update the PR title too, so it's easier
to spot ?
|
PR title is updated |
LGTM |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need to improve the gogs_migrate.sh to check specific gitea version being migrating to and ensuring to find the right corresponding app.ini (I'd prefer to fetch it locally..)
contrib/migrate/gogs_migrate.sh
Outdated
@@ -191,7 +191,7 @@ cp -R data "$gitea_path" | |||
#mv $gitea_path/conf $gitea_path/options | |||
cd "$gitea_path" | |||
mv "custom/conf/app.ini" "custom/conf/gogs_app.ini" | |||
url="https://raw.githubusercontent.com/go-gitea/gitea/v$gitea_version/conf/app.ini" | |||
url="https://raw.githubusercontent.com/go-gitea/gitea/v$gitea_version/custom.sample/app.ini" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks suspicious. BTW, I see gitea_version is hardcoded to 1.0.1 so this would basically not work as the 1.0.1 tag would not have custom.sample...
Maybe create another issue to update script if it's still used? Ref: #532 |
So don't touch that script and file that issue ?
|
need rebase. |
4cf3a25
to
b384159
Compare
@lunny Rebase done |
b384159
to
d2eba28
Compare
Codecov Report
@@ Coverage Diff @@
## master #1522 +/- ##
==========================================
+ Coverage 26.8% 26.82% +0.01%
==========================================
Files 90 90
Lines 17810 17810
==========================================
+ Hits 4774 4777 +3
+ Misses 12355 12353 -2
+ Partials 681 680 -1
Continue to review full report at Codecov.
|
How about to rename it to |
@lunny makes much more sense. |
d2eba28
to
4685525
Compare
Please resolve conflicts otherwise LGTM. @strk needs your approvals. |
@cez81 conflicts. |
* Explain app.ini purpose
4685525
to
0a2b477
Compare
LGTM |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All good to me
Rename app.ini as it isn't actually used as config. It only serves to show default values.
Fix for #1432