Open questions

  1. figure out the advantages of ddev
    1. good
  2. can we use it for CI CD - yes
    1. PR based deployments. check how database is managed and content. - https://www.velir.com/ideas/2023/10/20/why-we-merged-our-drupal-development-stack-with-ddev
  3. can we make simple change for ddev so that we can deploy it in production directly
    1. yes - https://www.velir.com/ideas/2023/10/20/why-we-merged-our-drupal-development-stack-with-ddev
  4. how does it play with containerisation
    1. with some minor changes it should work with docker compose easily. we just need to make docker compose aware of ddev locations and files - https://www.velir.com/ideas/2023/10/20/why-we-merged-our-drupal-development-stack-with-ddev

Getting started

  1. Install ddev with brew
  2. Steps from https://www.drupal.org/docs/official_docs/en/_local_development_guide.html are a decent start
  3. Create a project folder, configure ddev to serve the folder.
  4. Run ddev start which should give you # 403 Forbidden | nginx
  5. This allows you to run composer using ddev instead of locally.

Things you must checkout

  1. ddev help
  2. ddev start
  3. use composer for downloading and dependency management
  4. use drush for enabling and disabling modules
  5. ddev ssh

Running commands without sshing into containers

  1. Composer commands
    1. ddev exec composer require drupal/admin_toolbar
  2. Drush commsands
    1. ddev exec drush en admin_toolbar -y
  3. Update root pass
    1. ddev exec drush user:information --uid=5
    2. ddev exec drush user:password admin 'admin'

Explore further

  1. https://ddev.readthedocs.io/en/latest/users/extend/additional-services/
  2. Figure out Dbeaver support as adminer is not so great - https://github.com/ddev/ddev/issues/5375

Referenced in:

All notes