Articles
Set up Solr on Lando for Drupal Search API
The docs make it seem much more complicated than it really is.
Just copy and paste this into your lando file and rebuild:
servi...
Install Lando on Ubuntu
I used the instructions at:
https://docs.docker.com/engine/installation/linux/docker-ce/ubuntu/
You can also try this install...
Move docroot in repo
I was using Pantheon's Drupal 8 upstream for a project, but wanted to switch to their composer based one instead. We are well...
Resources
Using Imagick extension with PHP 8.3 on Docker
The latest imagick release in pecl repositories is not yet compatible with 8.3.
The workaround is to compile it manually by...
Install Docker Engine on Ubuntu
Docker Engine installation instructions for Ubuntu.
Lando + Drupal Contributions
Lando recipe for Drupal contrib development.
Tips
Using Imagick extension with PHP 8.3 on Lando
The latest imagick release in pecl repositories is not yet compatible with 8.3.
The workaround is to compile it manually by cloning the repo and running make commands inside the docker container.
Here's how to do it in lando:
.lando.yml
services:
appserver:
build_as_root:
- /app/scripts/imagick.sh
scripts/imagick.sh
Add db-sync command to lando
Create a command that uses drush sql-sync to import a prod db to a local multisite installation.
*You must have the @remote.SITE and @local.SITE drush aliases set up.
tooling:
db-sync:
service: appserver
cmd: site=${0} && drush sql-sync @remote.${site} @local.${site}
To use: lando db-sync SITE