Skip to content

Conversation

@silverwind
Copy link
Member

I think it's a bad default to have "dev" as the default run mode which enables debugging and now also disables HTTP caching. It's better to just default to a value suitable for general deployments.

I think it's a bad default to have "dev" as the default run mode which
enables debugging and now also disables HTTP caching. It's better to
just default to a value suitable for general deployments.
@techknowlogick techknowlogick added backport/v1.13 pr/breaking Merging this PR means builds will break. Needs a description what exactly breaks, and how to fix it! type/refactoring Existing code has been cleaned up. There should be no new functionality. labels Nov 30, 2020
@techknowlogick techknowlogick added this to the 1.14.0 milestone Nov 30, 2020
@GiteaBot GiteaBot added the lgtm/need 1 This PR needs approval from one additional maintainer to be merged. label Nov 30, 2020
@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 Nov 30, 2020
@techknowlogick techknowlogick merged commit bc455ed into go-gitea:master Nov 30, 2020
@6543
Copy link
Member

6543 commented Nov 30, 2020

@silverwind plz backport ;)

@silverwind silverwind deleted the prodmode branch November 30, 2020 20:48
silverwind added a commit to silverwind/gitea that referenced this pull request Nov 30, 2020
I think it's a bad default to have "dev" as the default run mode which
enables debugging and now also disables HTTP caching. It's better to
just default to a value suitable for general deployments.

Co-authored-by: techknowlogick <techknowlogick@gitea.io>
@techknowlogick techknowlogick added the backport/done All backports for this PR have been created label Nov 30, 2020
silverwind added a commit to silverwind/gitea that referenced this pull request Nov 30, 2020
Missed that part in go-gitea#13765. It's
already in the 1.13 backport so this forward-ports that change again.
lunny pushed a commit that referenced this pull request Dec 1, 2020
Missed that part in #13765. It's
already in the 1.13 backport so this forward-ports that change again.
lunny pushed a commit that referenced this pull request Dec 1, 2020
* Set RUN_MODE prod by default (#13765)

I think it's a bad default to have "dev" as the default run mode which
enables debugging and now also disables HTTP caching. It's better to
just default to a value suitable for general deployments.

Co-authored-by: techknowlogick <techknowlogick@gitea.io>

* flip default in checkRunMode

Co-authored-by: techknowlogick <techknowlogick@gitea.io>
@go-gitea go-gitea locked and limited conversation to collaborators Jan 18, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

backport/done All backports for this PR have been created lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. pr/breaking Merging this PR means builds will break. Needs a description what exactly breaks, and how to fix it! type/refactoring Existing code has been cleaned up. There should be no new functionality.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants