The standard Lando WordPress recipe is very bare bones. Here’s some additions that you might want to add right away to start getting the most from Lando’s feature set.
mailhog — this service will capture all the emails from your local install so you can test as much as you need and you’ll never have to worry about sending emails to real users by mistake
services:
pma:
type: phpmyadmin
hosts:
- database
mailhog:
type: mailhog
hogfrom:
- appserver
portforward: true.lando.yml — GitHub Gist
post-db-import — leverage wp-cli to quickly update your database import from production
events:
post-db-import:
appserver: >
cd $LANDO_MOUNT
&& wp search-replace "//example.com" "//example.lndo.site" --all-tables
&& wp search-replace "//www.example.com" "//example.lndo.site" --all-tables.lando.yml — GitHub Gist


No comments yet