DEV Community

Matthias Andrasch
Matthias Andrasch

Posted on β€’ Edited on

17 3 1

DDEV WP quickstart πŸš€

DDEV is a swiss army knife for developers. It enables isolated webserver containers for each project on your machine + the usage of many PHP frameworks, e.g. WordPress, Drupal, Laravel, Typo3, etc. It also has a lot of built-in functionality such as WP-CLI and even NodeJS/npm/yarn.

Here is a quick demo of how to setup a fresh WordPress via WordPress command line arguments:

See official guide for more info.

DDEV stores the complete webserver config in a YAML file which can be shared via git with your fellow team colleagues.

# .ddev/config.yaml
name: my-wp-site
type: wordpress
docroot: ""
nfs_mount_enabled: false
mutagen_enabled: false

# WebServer settings
php_version: "8.0"
mariadb_version: "10.3"
webserver_type: nginx-fpm
Enter fullscreen mode Exit fullscreen mode

This also allows you to easily switch between PHP versions. See official config.yaml-docs for more information.

Your colleagues just need to run ddev start after pulling the git repo. And it get's even better: With ddev pull and the Hosting Provider Integration feature, you can pull the latest database and files from your production site. Check out my pull scripts for example.

It can run on cloud IDEs such as Gitpod as well: https://dev.to/mandrasch/ddev-gitpod-awesome-5b98

Join DDEV discord to meet the community! 🧑

Postmark Image

Speedy emails, satisfied customers

Are delayed transactional emails costing you user satisfaction? Postmark delivers your emails almost instantly, keeping your customers happy and connected.

Sign up

Top comments (2)

Collapse
 
eadams33 profile image
E. Adams β€’

Just a quick note, the link to "Hosting Provider Integration" is a 404. The correct link for that is: ddev.readthedocs.io/en/stable/user...

Collapse
 
mandrasch profile image
Matthias Andrasch β€’

Thanks very much, updated the link! πŸ‘

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs