Skip to content

Instantly share code, notes, and snippets.

@MGHollander
Last active June 22, 2020 08:40
Show Gist options
  • Save MGHollander/5d0eb8549ffb565da97256b4a3b3f3eb to your computer and use it in GitHub Desktop.
Save MGHollander/5d0eb8549ffb565da97256b4a3b3f3eb to your computer and use it in GitHub Desktop.
Local Lando config to speed up Lando for Drupal projects
excludes:
# General
- vendor
# Drupal 8
- web
- '!web/sites'
- '!web/modules/custom'
- '!web/themes/custom'
# Drupal 7
- includes
- misc
- modules
- profiles
- themes
# Yii 2
- runtime
config:
xdebug: false
tooling:
xdebug-on:
service: appserver
description: Enable xdebug for Apache.
cmd: docker-php-ext-enable xdebug && service apache2 reload
user: root
xdebug-off:
service: appserver
description: Disable xdebug for Apache.
cmd: rm /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini && service apache2 reload
user: root
services:
appserver:
overrides:
environment:
PHP_IDE_CONFIG: serverName=<DOMAIN>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment