Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DDEV project type is always 'drupal' #62

Merged
merged 8 commits into from
Jun 10, 2024
Merged
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
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ DDEV integration for developing Drupal contrib projects. As a general philosophy
1. If you haven't already, [install Docker and DDEV](https://ddev.readthedocs.io/en/latest/users/install/)
2. `git clone` your contrib module
3. cd [contrib module directory]
4. Configure DDEV for Drupal 10 using `ddev config --project-name=[contrib module] --docroot=web --php-version=8.1` or select these options when prompted using `ddev config`
4. Configure DDEV for Drupal using `ddev config --project-name=[contrib module] --project-type=drupal --docroot=web --php-version=8.2` or select these options when prompted using `ddev config`
- Remove underscores in the project name, or replace with hyphens.
- See [Misc](#misc) for help on using alternate versions of Drupal core.
5. Run `ddev get ddev/ddev-drupal-contrib`
Expand Down Expand Up @@ -105,11 +105,12 @@ ddev phpcbf -q

"Error: unknown command":

The commands from this addon are available when the project type a valid `drupal` type.
Below, is an example `.ddev/config.yaml` for a Drupal 10 project.
The commands from this addon are available when the project type is `drupal`. Make sure the `type` configuration is correctly set in `.ddev/config.yaml`:

```yaml
type: drupal10
type: drupal
```

Don't forget to run `ddev restart` if `.ddev/config.yaml` has been updated.

**Contributed and maintained by [@weitzman](https://github.com/weitzman)**