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 more test directory to exclude dir of air, remove watching templates from air include dir because gitea has internal mechanism (#22246) #22247

Merged
merged 2 commits into from
Dec 29, 2022

Conversation

lunny
Copy link
Member

@lunny lunny commented Dec 27, 2022

backport #22246

Since #20218 introduced internal watching template, template watching should be removed from air. This will prevent restart the whole server once the template files changed to speed up developing when using make watch.

To ensure make watch will reuse template watching, this PR introduced a new ENV GITEA_RUN_MODE to make sure make watch will always run in a dev mode of Gitea so that template watching will open.

This PR also added more exclude testdata directories.

…tes from air include dir because gitea has internal mechanism (go-gitea#22246)

Since go-gitea#20218 introduced internal watching template, template watching
should be removed from `air`. This will prevent restart the whole server
once the template files changed to speed up developing when using `make
watch`.

To ensure `make watch` will reuse template watching, this PR introduced
a new ENV `GITEA_RUN_MODE` to make sure `make watch` will always run in
a dev mode of Gitea so that template watching will open.

This PR also added more exclude testdata directories.
@lunny lunny added the topic/build PR changes how Gitea is built, i.e. regarding Docker or the Makefile label Dec 27, 2022
@lunny lunny added this to the 1.18.0 milestone Dec 27, 2022
@GiteaBot GiteaBot added the lgtm/need 1 This PR needs approval from one additional maintainer to be merged. label Dec 29, 2022
@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 Dec 29, 2022
@KN4CK3R KN4CK3R merged commit 4fdd4fb into go-gitea:release/v1.18 Dec 29, 2022
@lunny lunny deleted the lunny/hot_reload_improve2 branch December 29, 2022 15:15
@6543 6543 added the skip-changelog This PR is irrelevant for the (next) changelog, for example bug fixes for unreleased features. label Dec 29, 2022
@go-gitea go-gitea locked and limited conversation to collaborators May 3, 2023
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. skip-changelog This PR is irrelevant for the (next) changelog, for example bug fixes for unreleased features. topic/build PR changes how Gitea is built, i.e. regarding Docker or the Makefile
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants