Skip to content

Work in progress of template for DDEV Drupal projects

Notifications You must be signed in to change notification settings

wunderio/ddev-drupal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Wunder template for DDEV Drupal projects

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

  1. 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
  2. Install wunderio/ddev-drupal Composer package with DDEV and restart DDEV:

    ddev composer require wunderio/ddev-drupal --dev && ddev restart
  3. 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.

  4. Import database:

    ddev import-db --file=some-sql-or-sql.gz.file.sql.gz

    or install site:

    ddev drush si
  5. Create admin link and login:

    ddev drush uli