Opinionated DDEV config for our Drupal/CiviCRM installations.
ddev add-on get socialistalternative/ddev-sa
Add hooks to .ddev/config.yaml
:
hooks:
post-pull:
- exec: .ddev/bin/setup
post-start:
- exec: .ddev/bin/setup
To support building a theme, define the theme name in .ddev/.env
:
THEME=my_theme
To support Vite for theme development, expose ports in .ddev/config.yaml
:
web_extra_exposed_ports:
- name: vite
container_port: 5173
http_port: 5172
https_port: 5173