Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions .ddev/config.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
name: drupal-starter
type: drupal10
docroot: web
php_version: "8.3"
Expand All @@ -20,8 +19,8 @@ corepack_enable: false

# Key features of DDEV's config.yaml:

# name: <projectname> # Name of the project, automatically provides
# http://projectname.ddev.site and https://projectname.ddev.site
# name is intentionally omitted so DDEV derives it from the directory name,
# enabling git worktree support. See README.md.

# type: <projecttype> # backdrop, craftcms, django4, drupal, drupal6, drupal7, laravel, magento, magento2, php, python, shopware6, silverstripe, typo3, wordpress
# See https://ddev.readthedocs.io/en/stable/users/quickstart/ for more
Expand Down
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,17 @@ The only requirement is having [DDEV](https://ddev.readthedocs.io/en/stable/) in
Once the Drupal installation is complete you can use `ddev login` to
log in to the site as admin user using your default browser.

## Git Worktree support

You might need several instances of the project running simultaneously (e.g.,
parallel feature branches, AI agent workflows, or PR reviews).
See how [DDEV handles it](https://www.fldrupal.camp/session/use-git-worktree-ddev-run-multiple-versions-same-site). There's also an [add-on for this](https://github.com/elabx/ddev-worktrees?tab=readme-ov-file#ddev-worktree):
```
ddev add-on install esanmiguel/ddev-worktree
```

The project name is omitted from [config.yaml](https://github.com/Gizra/drupal-starter/blob/main/.ddev/config.yaml), so DDEV can use the directory name, which is needed in this scenario.

## Default content management

This project uses `drupal/default_content` module to manage the installation
Expand Down
Loading