wunderio / ddev-drupal
Wunder's extendable template for DDEV Drupal projects.
Installs: 2 668
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 3
Forks: 0
Open Issues: 17
Type:composer-plugin
Requires
- composer-plugin-api: ^2.0
- drupal/core: ^8 || ^9 || ^10 || ^11
Requires (Dev)
- composer/composer: ^2.0
- dev-main
- 0.4.0
- 0.3.0
- 0.2.0
- 0.1.1
- 0.1.0
- 0.0.1
- dev-feature/+32-Allow-Drupal-11-in-Composer
- dev-feature/30-Integrate-vscode-and-PhpStorm
- dev-feature/16-run-config-import-updb-after-import
- dev-feature/6-Run-post-db-updates-after-snapshot-restore
- dev-feature/+19-Create-PR-template
- dev-feature/17-In-ddev-pmu-command-always-do-cr-before-drush-pmu
- dev-feature/14-Automatic-updates
- dev-feature/11-Create-syncdb-task-to-sync-wunder-production-db-to-local
- dev-feature/9-Create-wrapper-for-pmu-to-be-able-to-uninstall-modules-that-dont-exist-in-code
- dev-feature/7-update-grumphp-git-hook-from-lando-to-ddev-aware
- dev-feature/+7-update-grumphp-git-hook-from-lando-to-ddev-aware
- dev-feature/1-Create-initial-minimal-configuration
This package is auto-updated.
Last update: 2024-11-29 09:08:03 UTC
README
This is a template for DDEV Drupal projects for defining the base DDEV setup for Drupal. It comes with predefined .ddev/config.wunderio.yaml file and .ddev/dist folder which contents is copied to your project root.
Installation
-
Initialize your Drupal 10 project. Project name parameter is optional, but it's advisable to use domain name as your project name as that's used for for the subdomain of ddev.site eg if project name is example.com, then localhost URL will become example.com.ddev.site.
ddev config --project-type=drupal10 --docroot=web --project-name=example.com
-
Install wunderio/ddev-drupal Composer package with DDEV and restart DDEV:
ddev composer require wunderio/ddev-drupal --dev && ddev restart
-
Add changes to GIT (note that below command uses -p, so you need to say 'y'es or 'n'o if it asks what to commit):
git add .ddev/ && git add drush/sites/ && git add composer.lock && git add -p composer.json web/sites/default/settings.php grumphp.yml && git commit
Also note that whenever you update wunderio/ddev-drupal package, you need to add everything under .ddev to GIT.
-
Import database:
ddev import-db --file=some-sql-or-sql.gz.file.sql.gz
or install site:
ddev drush si
-
Create admin link and login:
ddev drush uli