Quick references DDEV to launch web development environments. View the
official docs for more information.
- I loved DDEV because it simplifies the process of setting up local development environments. No need for manual installation and configurations of Webservers, databases and other dependencies.
- DDEV support various web frameworks and CMS such as Laravel, Magento, Wordpress,… Check this link to view more.
- I can config workflow tailored to my specific projects need with extension and custom command.
Multi-column
# intialize ddevddev config
# delete projectddev ddev --omit-snapshot <project_id>
# list all projectsddev list
# start ddev into projectddev start
# stop ddev into projectddev stop
# restart into projectddev restart
# logs containerddev log <services>
# list out ddev services per-projectddev describe
# download add-onddev get <add_on>
# db guiddev sequeplace # launch Seq- Overriding the default configurations
nginxplease removing#ddev-generatedon file.ddev/nginx/nginx_full/nginx-site.conf. If not when runningddev restartit will revert to default DDEV configurations. web_extra_daemon: add extra daemons to startup automatically inside web container.
web_extra_daemons: - name: 'http-1' command: 'PORT=3000 npm run dev' directory: /var/www/htmlomit_containers: List some containers should not be loaded automatically for one or more projects
omit_containers: [db]server { listen 80; listen 443 ssl; ssl_certificate /etc/ssl/certs/master.crt; ssl_certificate_key/etc/ssl/certs/master.key; location / { proxy_pass http://localhost:3000; proxy_http_version 1.1; proxy_set_headerUpgrade $http_upgrade; proxy_set_header Connection 'upgrade'; proxy_set_header Host $host; proxy_cache_bypass$http_upgrade; } include /etc/nginx/monitoring.conf; error_log /dev/stdout info; access_log /var/log/nginx/access.log;include /etc/nginx/common.d/*.conf; include /mnt/ddev_config/nginx/*.conf; }Make the calls to projects B via the regular FQDN from project A
# call from project A inside containercurl https://projectb.ddev.siteservices: web: external_links: - ddev-router:projectB.ddev.site- Example (Fix CORS errors call /graphql Magento in Next.Js Project)
... location /graphql { proxy_pass https://projectb.ddev.site/graphql } ...- Mutagen
ddev mutagen reset # reset dataddev config --global --performance-mode=none # disable for all projectsddev config --performance-mode=none # disable for per-projectFor easy setup PHPStorm, You can install
DDEV Integrationfrom homepage or by searching the in-app marketplace (Preferences -> Plugins -> Marketplace) for “DDEV”On version PHPStorm 2024.1.1, this plugins could not install from marketplace because their dev has not published its yet. To use it, we can install preview version with follow guide
- Download the zip file
- Uncompress the zip. (DO NOT use default unzip applications MacOS. Need to use CLI or another tool example The Unarchiver)
- Install Plugins by steps Install from disk -> choose file
ddev-intellij-plugin-0.0.1-dev.zip