Open questions
- figure out the advantages of ddev
- good
- can we use it for CI CD - yes
- 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
- can we make simple change for ddev so that we can deploy it in production directly
- how does it play with containerisation
- 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
- Install ddev with brew
- Steps from https://www.drupal.org/docs/official_docs/en/_local_development_guide.html are a decent start
- Create a project folder, configure ddev to serve the folder.
- Run
ddev start
which should give you# 403 Forbidden | nginx
- This allows you to run composer using ddev instead of locally.
Things you must checkout
- ddev help
- ddev start
- use composer for downloading and dependency management
- use drush for enabling and disabling modules
- ddev ssh
Running commands without sshing into containers
- Composer commands
ddev exec composer require drupal/admin_toolbar
- Drush commsands
ddev exec drush en admin_toolbar -y
- Update root pass
- ddev exec drush user:information --uid=5
- ddev exec drush user:password admin 'admin'
Explore further
- https://ddev.readthedocs.io/en/latest/users/extend/additional-services/
- Figure out Dbeaver support as adminer is not so great - https://github.com/ddev/ddev/issues/5375
Referenced in:
All notes