Repository navigation
Renamed 'VORTEX_NGINX_MAINTENANCE_MODE' to 'VORTEX_WEBSERVER_MAINTENANCE_MODE'. - #3234
Merged
Merged
Conversation
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
Code coverage (threshold: 90%) Per-class coverage |
Member
Author
|
Code coverage (threshold: 90%) Per-class coverage |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #3234 +/- ##
==========================================
- Coverage 92.28% 92.09% -0.20%
==========================================
Files 113 105 -8
Lines 5097 4931 -166
Branches 49 3 -46
==========================================
- Hits 4704 4541 -163
+ Misses 393 390 -3 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
📖 Documentation preview for this pull request has been deployed to Netlify: https://6ade7128d2385a814538feef--vortex-docs.netlify.app This preview is rebuilt on every commit and is not the production documentation site. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The static maintenance page is now switched on with
VORTEX_WEBSERVER_MAINTENANCE_MODE=1instead ofVORTEX_NGINX_MAINTENANCE_MODE=1. Theenvplateplaceholder in.docker/config/nginx/maintenance.conf, thenginxservice pass-through indocker-compose.yml, and every doc that tells you how to flip the switch all use the new name.The old name tied a hosting-level toggle to 1 specific webserver. You set it on the environment (Lagoon
--scope runtime) to say "serve the maintenance page", which doesn't care what's answering requests, so bakingNGINXinto the name would turn into a breaking rename the day the webserver changes. Better to rename it now, while it's only been out since 1.42.0.After merge, a project that has
VORTEX_NGINX_MAINTENANCE_MODEset on an environment needs to setVORTEX_WEBSERVER_MAINTENANCE_MODEinstead. The old name isn't read anymore, so leaving it in place keeps the site serving normally. Nothing else moves: thenginxcontainer,maintenance.html, the503response and the "only1turns it on" rule all stay as they are.Before / After
Changes
Template
.docker/config/nginx/maintenance.conf- placeholder and header comment use the new name (comment re-wrapped to stay under the line limit).docker-compose.yml-nginxpass-through entry and its comment use the new name.docs/deployment.md- consumer-facing maintenance page instructions.Documentation site
.vortex/docs/.utils/variables/extra/lagoon.variables.sh- the variable source the docs table is generated from..vortex/docs/content/development/variables.mdx- regenerated withahoy update-docs, so the anchor id is nowvortex_webserver_maintenance_mode(nothing linked to the old one)..vortex/docs/content/hosting/lagoon.mdx-lagoon add variable,lagoon delete variableand local preview commands..vortex/docs/content/development/environment/docker.mdx- thenginxpass-through note.Tests
.vortex/tests/phpunit/Traits/Subtests/SubtestAhoyTrait.php- the functional subtest that bringsnginxup in maintenance mode now sets the new name..vortex/tests/phpunit/Fixtures/docker-compose.*.jsonand the installerhandler_processfixtures (_baselineplus the 5 Lagoondocs/deployment.mddeltas) - regenerated withahoy update-snapshots, which now passes all 160 scenarios.Summary by CodeRabbit
VORTEX_WEBSERVER_MAINTENANCE_MODEinstead of the previous variable name.