very good documentation at https://docs.lando.dev/drupal/
- <install lando> per the instructions here
$ lando init
- follow the prompts as described here
- Alternatively add Lando to an existing project with a bare-bones
.lando.yml:
name: myproject
recipe: drupal7
config:
webroot: .- Download a recent DB & media backup from Pantheon
- Copy the DB to the LOCAL root for this site
- Copy the media files to
/sites/default/files $ lando start$lando info— note the db settings (for the next step)- Navigate to the URL reported by lando (something like
http://my-site.lndo.site) — you should see theinstall.phpscreen - use the following DB settings in the Install script, from the
internal_connectionandcredsdictionaries):
- database:
drupal7 - username:
drupal7 - password:
drupal7 - host:
database(← this is where I got tripped up) - port:
3306
- Import your DB into the running container:
$ lando db-import path/to/data/file $ lando drush cc all