Skip to content

v0.2: ddev start in worktrees (forked DB + Caddy) - #2

Open
oxyc wants to merge 1 commit into
mainfrom
feat/v0.2-ddev-start-worktree
Open

v0.2: ddev start in worktrees (forked DB + Caddy)#2
oxyc wants to merge 1 commit into
mainfrom
feat/v0.2-ddev-start-worktree

Conversation

@oxyc

@oxyc oxyc commented Aug 21, 2026

Copy link
Copy Markdown
Member

Summary

  • Worktrees use ddev start — no wt-up, no wt-guard blocking start
  • Own MariaDB per worktree (herrfors-wt-<suffix> DDEV project); cloned from canonical on first start, no search-replace
  • Caddy :808x proxies to the worktree ddev-*-web container (same Host/response rewrite as v0.1)
  • Uploads / .env symlinked from canonical on wt-prepare
  • ddev wt-sync-db for manual DB refresh; ddev wp replaces wt-wp

Hooks (via config.generoi-worktree.yaml)

Hook Script
pre-start wt-prepare — unique name:, bootstrap symlinks
post-start wt-post-start — seed DB if empty, start Caddy
pre-stop wt-pre-stop — stop Caddy

Project .gitignore additions

.ddev/wt/
.ddev/config.generoi-worktree.local.yaml

Breaking changes (v0.1 → v0.2)

  • Removed: wt-guard, sidecar web container, shared DB
  • Deprecated: wt-up (errors with hint), wt-wp (use ddev wp)

Test plan

  • ddev add-on get on herrfors worktree pilot
  • Canonical: ddev start unchanged
  • Worktree: ddev starthttps://herrfors.ddev.site:808x, forked DB isolated
  • bash .ddev/generoi-worktree/test-acceptance.sh from worktree
  • ddev wt-sync-db refreshes from canonical

Tag v0.2.0 after merge.

Made with Cursor

Replace sidecar web + shared DB with full DDEV per worktree: unique project
name via config fragment, DB cloned from canonical on first start (no
search-replace), Caddy :808x proxy to the worktree web container.

Hooks: wt-prepare (pre-start), wt-post-start, wt-pre-stop.
Add wt-sync-db; deprecate wt-up, wt-guard, wt-wp.

Co-authored-by: Cursor <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant