Skip to content

v1.8.1 — several checkouts of one repo at once

Choose a tag to compare

@pianomansam pianomansam released this 21 Sep 17:03
· 9 commits to master since this release
a05908e

Omit name: from .ddev/config.yaml and DDEV names each project after its enclosing directory — so a worktree per branch, or two clones side by side, run at the same time instead of fighting over one name, one set of containers and one database volume.

git worktree add ../rdg2020-vite vite
cd ../rdg2020-vite && ddev start     # https://rdg2020-vite.ddev.site

Ports were never the problem: everything goes through the one shared ddev-router, routed by Host, the derived theme dev-server on 35728/35729 included. The project name was.

Taking this release does not change any repo on its own. Each repo opts in by deleting its own name: line — and a repo whose directory basename differs from its current project name will be renamed on the next start and lose its containers and database volume, so check that first.

Fixes

  • rdg/mailpit-hostname.sh no longer bails when config.yaml declares no name:. Bailing handed mailpit.<project>.ddev.site back to the port-based URL — the exact cross-project collision the file exists to prevent, since 8025/8026 are global.
  • A project name carrying capitals is no longer mangled into a broken router. DDEV keeps the case in the container name and lowercases it in the hostname; the two now track separately.

Docs

README.md — Running several checkouts of one repo at once. docs/dkr-to-ddev.md — Two checkouts of the same site, and name: dropped from the three config.yaml templates. Both cover the two things a new checkout does not inherit: the database, and the gitignored Upsun link file that ddev upsun-db-pull needs.

220 tests, up from 217.

Full changelog: v1.8.0...v1.8.1