-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy path.lando.yml
77 lines (77 loc) · 2.52 KB
/
.lando.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
name: sfgov
recipe: pantheon
config:
framework: drupal8
site: sfgov
id: 91d50373-c4cf-40e4-a646-cb73e16a140c
webroot: web
composer_version: 2
php: '8.1'
conf:
php: lando-config/php/php.ini
# Note: Xdebug negatively impacts performance. It should be toggled on/off
# using the custom tooling commands, 'lando xdebug-on' and 'lando xdebug-off',
# as needed.
# xdebug: develop,debug
config:
database: lando-config/db/custom.cnf
services:
appserver:
run:
- mkdir -p /var/www/logs
build:
- "composer global require drupal/coder"
- "/app/vendor/bin/phpcs --config-set installed_paths /app/vendor/drupal/coder/coder_sniffer"
overrides:
environment:
BEHAT_PARAMS: >-
{ "extensions": { "Behat\\MinkExtension": { "base_url":
"http://sfgov.lndo.site", "goutte": { "guzzle_parameters": { "verify":
false } } }, "Drupal\\DrupalExtension": { "drush": { "root":
"/app/web" } } } }
XDEBUG_MODE: develop,debug
XDEBUG_SESSION_START: LANDO
tooling:
behat:
service: appserver
cmd: /app/vendor/bin/behat
phpunit:
service: appserver
cmd: /app/vendor/bin/phpunit
drush:
service: appserver
cmd: /app/vendor/bin/drush
getdb:
description: Supplement to `lando pull` when it fails because of drush issues
cmd:
- appserver: rm -f /app/web/database.sql.gz
- appserver: terminus backup:create sfgov.dev --element=db
- appserver: terminus backup:get sfgov.dev --element=db --to=/app/web/database.sql.gz
- database: /helpers/sql-import.sh database.sql.gz # this is relative to current working dir, be sure to run this command from `web` dir
xdebug-on:
service: appserver
description: 'Enable xdebug for nginx.'
cmd: docker-php-ext-enable xdebug && pkill -o -USR2 php-fpm
user: root
xdebug-off:
service: appserver
description: 'Disable xdebug for nginx.'
cmd: rm /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini && pkill -o -USR2 php-fpm
user: root
php-sniff:
service: appserver
cmd: "/app/vendor/bin/phpcs"
description: Run phpcs Drupal Coding Standards against a given file or directory.
php-fix:
service: appserver
cmd: "/app/vendor/bin/phpcbf"
description: Automatically fix Drupal coding standards suggestions.
migrate-import:
service: appserver
cmd: /app/scripts/migrate/import
migrate-reroll:
service: appserver
cmd: /app/scripts/migrate/reroll
migrate-reset:
service: appserver
cmd: /app/scripts/migrate/reroll