Skip to content

Using Container Services

Our DDEV setup for this project provides services to ease the development process.

Symfony Debug Shortcuts

Website
ddev launch
EasyAdmin Administration Panel
ddev admin
API Platform Landing Page
ddev api
Mailpit Inbox
ddev mailpit
PHPMyAdmin Database Manager
ddev phpmyadmin
Container SSH Access
ddev ssh
Current Online Documentation
ddev docs

Extra Container Services

Beyond launching the dev container, you may want to run additional services that are provided by the DDEV setup.

Live Asset Server

If you want to run the ViteJS powered live asset server that can automatically update or refresh your pages on changes, you can run the following command in a separate terminal tab:

ddev dev

Warning

This live asset server is intended to reduce friction while developing the frontend locally, but asset changes will still need to be built before deploying to production.

Scheduler Services / Email Queue

Processing Symfony Messenger Tasks

If you want to process Symfony Messenger scheduler/async tasks (such as sending and receiving emails through mailpit), you will need to run the Symfony Messenger consumer in a separate terminal tab:

ddev symfony console messenger:consume --all -vv

Using Mailpit

If you want to send and receive emails while testing, be sure to complete the following two steps:

  1. Ensure you are using the local dev mailer's dsn in your ./.env file:
    MAILER_DSN=smtp://localhost:1025
    
  2. Ensure you are consuming messages from Symfony by running the following command in another terminal:
    ddev symfony console messenger:consume --all -vv
    

Disabling Asynchronous Mail

If you want to disable asynchronous actions, you can do so by opening config/packages.messenger.yaml and changing the value Symfony\Component\Mailer\Messenger\SendEmailMessage from mailer, scheduled, etc to sync.


Watching Symfony Logs

If you want to track realtime dev logs, you can run the following command in another terminal tab:

ddev exec tail -f var/log/dev.log