Lando
This article describes one way to use Live Dev Porter with Lando, which leverages the container so no host dependencies are required. You will need to use lando ldp ... when executing commands. In this example we're setting up a local environment called dev in the configuration.
Base Path Must Be A Container Path
You must define _basepath using a container path, NOT a path on the host machine.
_.live_devporter/config.yml or _.live_devporter/config.local.yml
environments:
dev:
base_path: /app
...
Correct Database Plugin
You must use the correct database plugin. Surprisingly, do not use one of the lando* database plugins, (which are only for running LDP outside of the container). Instead use either the env or mysql database plugin:
_.live_devporter/config.yml or _.live_devporter/config.local.yml
environments:
dev:
...
databases:
drupal:
plugin: env
path: .env
var: DATABASE_URL
Add Tooling
Add the following so that lando ldp can be used.
.lando.yml
tooling:
ldp:
service: appserver
description: Run Live Dev Porter from the container.
cmd: "/app/vendor/bin/ldp"
user: root