Skip to content

Using the environment (Personal)

Matt Poole edited this page Jul 15, 2024 · 3 revisions

This project is just Lando with some additional helpers. All normal Lando commands can be run, however, do not start Lando until you have run:

./robo.sh lando:init once.

That command steps you through some different personal functionality that you can set up. If you'd like to run any of them again, you can use:

./robo.sh | grep ' 'lando:

The most interesting command is ./robo.sh lando:set-personal-services. This will let you turn on things like a mail capture and database admin.

Also of note is ./robo.sh lando:duplicate-project. This will let you create another separate environment for the same project. In this way, you can work on features or pull requests concurrently without breaking your current environment.

Working with Drupal

There are two new tooling commands that are available.

  • lando si: Installs Drupal a fresh Drupal site. It will install from configuration if you already have config. Handy to get a fresh start.
  • lando su: If Drupal is installed, it will just run DB updates and import config. If Drupal is not installed, it will run similar to lando si. Quicker, but it will not install any new default content.

And the normal lando db-import is available if your workflow requires it.

Shortcut Commands

  • ./composer.sh a wrapper script for lando composer that writes to composer.log commands that change composer.lock are run. Use it instead of lando composer.
  • ./drush.sh a wrapper around lando drush, can be used interchangeably.
  • ./robo.sh lets you work with extra commands for working with the environment.
Clone this wiki locally