Resources on using ddev for Drupal 9 development, Windows edition

Resources

Here’s a list of resources to get you started with DDEV and Drupal 9. As with setting up any new development (or production) environment there are a lot of moving parts and it take some time to get it all right. This list includes “HowTo” articles, tools, and documentation to get it all set up.

Notes

— After running ddev config and before running ddev start for the fist time use your favorite editor to edit .dev/config.yaml to the following:

name: d9-dev
type: drupal9
docroot: web
php_version: "8.1"
webserver_type: apache-fpm
router_http_port: "80"
router_https_port: "443"
xdebug_enabled: false
additional_hostnames: []
additional_fqdns: []
mariadb_version: ""
mysql_version: "8.0"
nfs_mount_enabled: false
mutagen_enabled: false
use_dns_when_possible: true
composer_version: ""
web_environment: []

This will setup DDEV with MySQL 8, PHP 8.1, Drupal 9, and Apache. This matches the dev environment that CALI is using for D9. Check the DDEV docs for more possibilities.

— The DDEV install includes the latest phpmyadmin to help with mysql admin. It’s available in a local browser at <projectName>.ddev.site:8036. Use phpmyadmin to load a dump of the D9 dev database.

— Once WSL2 is setup, use Ubuntu 20.04 to host DDEV.

— DDEV includes git so that’s a good way to manage Drupal. In the CALI world use git to grab a copy of the current D9 code base.

Drupal 8 end of life and future Drupal 10 release

Drupal 10 is coming in 2022 — discover what new features it is going to include, and what to do with Drupal 8 and Drupal 7 websites in relation to their end-of-life.

Source: Drupal 8 end of life and future Drupal 10 release

Drupal 7’s end of life is scheduled for November 2022, just one year from now. CALI is moving it’s D7 website to Drupal 9 by June 2022. I’m hoping Drupal becomes more like WordPress where major version updates are mostly point and click affairs with little or no need to rebuild a site.

Updating Drupal core via Composer 

To understand how Composer manages Drupal dependencies, see Using Composer with Drupal. To decide if Composer is a sensible way to update, compare the available options.
For convenience, these instructions include the Drush commands necessary to complete an update: many people find Drush quicker and easier than the web-based admin area.
If this is an existing Drupal site, where Composer has never been used before, make sure it’s ready for Composer first.

Source: Updating Drupal core via Composer | Updating Drupal | Drupal Wiki guide on Drupal.org

With Drupal 9 updating core with Composer is the way to go.

Drupal 9.1.0 is available


The first feature release of Drupal 9 includes the new experimental Olivero frontend theme and various additions to the Claro administration theme. Installer performance is improved 20% and full Composer 2 and PHP 8 support is available. Images with known dimensions are set to lazy-load by default to improve frontend performance.

Source: Drupal 9.1.0 is available

Looks like PHP 8, Composer 2, Symphony 4,5,6 will get us to Drupal 9. Upgrades paths from Drupal 7 are stable.