-
Notifications
You must be signed in to change notification settings - Fork 0
/
.lando.yml
30 lines (30 loc) · 1.01 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
name: starter-wordpress
recipe: wordpress
config:
php: '7.4'
webroot: web
xdebug: false
services:
database:
portforward: 50001
tooling:
pull-db-production:
service: appserver
cmd:
- wp db export -> db.sql --ssh=USER@HOST:PORT/path/to/current
- wp db import db.sql
- rm -f db.sql
- wp search-replace https://www.starter-wordpress.com https://www.starter-wordpress.test --skip-columns=guid
- wp plugin deactivate limit-login-attempts varnish-http-purge
push-db-production:
service: appserver
cmd:
- wp db export db.sql
- scp -P PORT db.sql USER@HOST:/path/to/current
- wp db import db.sql --ssh=USER@HOST:PORT/path/to/current
- rm -f db.sql
- wp search-replace https://www.starter-wordpress.test https://www.starter-wordpress.com --skip-columns=guid --ssh=USER@HOST:PORT/path/to/current
pull-uploads-production:
service: appserver
cmd:
- rsync -avz -e "ssh -p PORT" USER@HOST:/path/to/current/web/app/uploads/ ./web/app/uploads