Repository navigation
[Fix] Sync upstream 4.x (branch change under modern deployment) - #5
Merged
Merged
Conversation
…under modern deployment (vitodeploy#1263) With modern deployment enabled, a site's path is `<base>/current`, which points at the active release. UpdateBranch ran `git fetch origin` and `git checkout -f <branch>` in that path, so saving a new branch swapped the code of the live release in place, with no build, no pre-flight and no migrations. The forced checkout also restored tracked files over the shared resources, replacing the `storage` symlink with a plain directory in that release. The branch is now switched in `<base>/source`, the checkout that holds the shared resources and is pulled on every deployment. The next deployment clones the new branch into a fresh release as usual. Sites without modern deployment keep their current behaviour.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01ErQwQQUZfaxvDvWaVGBoe4
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.
Brings in vitodeploy#1263 (changing a site's branch no longer checks out the live release under modern deployment) and vitodeploy#1271 (docs).
🤖 Generated with Claude Code
https://claude.ai/code/session_01ErQwQQUZfaxvDvWaVGBoe4
Generated by Claude Code