-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.lando.yml
75 lines (75 loc) · 1.64 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
name: the-world-wp
recipe: pantheon
excludes:
- vendor
- node_modules
- wp-content/plugins/tw-episode-importer/admin/ui/node_modules
env_file:
- .env
config:
framework: wordpress
id: fa3253e3-f798-4bae-a25f-e278d44a9aab
site: the-world-wp
php: "7.4"
via: apache:2.4
database: mysql
ssl: true
services:
node:
type: node:20
build:
- npm install
- chmod +x scripts/*
appserver_nginx:
scanner:
retry: 10
okCodes:
- 302
- 401
- 402
- 403
edge:
scanner:
retry: 10
okCodes:
- 302
- 401
- 402
- 403
edge_ssl:
scanner:
retry: 10
okCodes:
- 302
- 401
- 402
- 403
mailhog:
type: mailhog
portforward: false
hogfrom:
- appserver
tooling:
wp:
service: appserver
cmd: wp --path=/app --url=the-world-wp.lndo.site
# Lando will run sh scripts but does not recognize the lando command within.
# local:
# service: appserver
# description: Find and replace the domain for local environment, and import configuration
# cmd:
# - './scripts/refresh.sh'
# refresh:
# service: appserver
# description: Import database, find and replace the domain for local environment, and import configuration
# cmd:
# - './scripts/refresh.sh'
npm:
service: node
node:
service: node
events:
post-db-import:
- appserver:
# Replace Wordpress domain in the database pantheon dev environment
- wp --path=/app --url=dev-the-world-wp.pantheonsite.io search-replace 'dev-the-world-wp.pantheonsite.io' 'the-world-wp.lndo.site'