Repository navigation
--holds: map the side of hostshift.yaml the database holds - #15
Merged
Merged
Conversation
A committed production-canonical hostshift.yaml describes the sites, not the database in front of the worktree. A copy-db of a search-replaced parent holds each site's base, a staging pull its alias; mapped on the canonicals, WordPress redirects every page to the host its rows name. hostshift map/check/... --holds canonical|base|alias makes that origin each site's canonical and keeps the others as aliases. ddev hostshift init --holds records the side as HOSTSHIFT_HOLDS in .ddev/.env, so check, the post-start hook and a later bare init agree, and hands the proxy a flat --from/--to map of held origin against variant, which the published image already understands. copy-db says which side to map when a hostshift.yaml is present. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The flag picks a declared origin; nothing in it knows WordPress. Two comments and the README section used it as the example. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
A committed production-canonical
hostshift.yamldescribes the sites, not the database in front of a worktree. A worktree whose database was copied from a search-replaced parent holds each site'sbase, and a staging pull holds its alias. Mapped on the canonicals, WordPress then redirects every page to the host its rows name.hostshift map/check/... --holds canonical|base|aliasmakes that origin each site's canonical and keeps the others as aliases.canonicalis the default.aliasrefuses a site with none or several.ddev hostshift init --holds Xrecords the side asHOSTSHIFT_HOLDSin.ddev/.env, socheck, the post-start hook and a later bareinitagree. It hands the proxy a flat--from/--tomap, which the published image already understands.copy-dbsays to runinit --holds basewhen ahostshift.yamlis present.--holdsunder production-canonical, and the flag in the reference.Tests:
TestMapHolds, and a 13-case--holdssection intest/addon-command.sh.make test-addonandgo test ./...pass;make test-integration(real DDEV) wasn't run.🤖 Generated with Claude Code