This repository has been archived by the owner on Aug 20, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 31
/
Copy path.lando.yml
71 lines (65 loc) · 1.78 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
name: pantheon-wp-best-practices
recipe: pantheon
config:
framework: wordpress
site: pantheon-wp-best-practices
id: 094f4627-a25e-4d60-8d5b-a3d99a7232bf
xdebug: true
webroot: web
php: '7.2'
proxy:
node:
# Setup a proxy for the node service to connect
# to BrowserSync at https://wp-best-practices.lndo.site:3000/
- wp-best-practices.lndo.site:3000
services:
# Spin up a node service so we can run gulp
node:
type: node:custom
ssl: true
overrides:
services:
ports:
# expose port 3000 for BrowserSync
- "3000:3000"
# use a custom Docker image
image: ataylorme/docker-node-advanced-wordpress-on-pantheon:latest
# Additional "lando" commands
tooling:
npm:
service: node
node:
service: node
gulp:
service: node
google-chrome-stable:
service: node
backstop:
service: node
composer:
service: appserver
wp:
service: appserver
composer-install:
description: Install Composer dependencies
cmd: ./bin/install-composer-dependencies.sh
service: appserver
gulp-build:
description: Install npm dependencies and run gulp
cmd: ./.circleci/build-gulp-assets.sh
service: node
wordhat:
description: Run WordHat
cmd: ./vendor/bin/behat --config=tests/behat/behat-lando.yml --strict
service: appserver
wordhat-commands:
description: List WordHat commands
cmd: ./vendor/bin/behat -dl --config=tests/behat/behat-lando.yml --strict
service: appserver
# Automate build steps after every start
#events:
# post-start:
# # Run gulp every time node is started
# - node: "cd $LANDO_MOUNT && ./.circleci/build-gulp-assets.sh"
# # Run composer every time appserver is started
# - appserver: "cd $LANDO_MOUNT && ./bin/install-composer-dependencies.sh"