Using this repo gives you a.lando.yml file configured for Drupal contributions: Automatically grabs the Drupal source code and runs composer install on lando rebuild -y Automatically kills the source code and database on lando rebuild -y so you can start fresh with each patch. Cd lando-drupal-composer lando init -recipe drupal8 -webroot=web -name='drupal-lando-composer' lando start The only differences here are the -name option and -webroot=web.
Lando is Platform.sh’s recommended local development tool. It is a third party tool developed by Tandem, which now includes direct support for Platform.sh projects. Lando can read your Platform.sh configuration files and produce an approximately equivalent configuration using Docker with minimal effort on the part of the developer.
At this time, Lando supports only PHP-based applications but works with any service supported by Platform.sh. Support for other application languages is in progress.
See the Lando documentation for installing and setting up Lando on your system. A quick-start guide is included below, but the Lando documentation is the primary source of truth.
First, ensure that you have the Platform.sh CLI installed and that you have authenticated your account. Then, install Lando and Docker per Lando’s installation instructions.
If you do not yet have your project checked out, run:
That will offer an interactive dialog to select the Platform.sh project to download, and then setup basic Lando configuration.
If you already have your project checked out locally, change into the project directory and run:
Lando Drupal Composer
That will use your existing git clone and add the appropriate Lando configuration.
Either way, start the local environment by running:
You can then download data from the environment for your current branch and load it into your local Lando environment by running:
Where the value after
-r is the relationship name in the application for the service you want to download, and
-m is the Platform.sh mount path you want to download. You may specify as many relationships (multiple
-r switches) and as many mounts (multiple
-m switches) as you wish.