forked from backdrop-ops/forum.backdropcms.org
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.lando.yml
32 lines (32 loc) · 868 Bytes
/
.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
name: forum
recipe: backdrop
env_file:
- .env
config:
php: '7.2'
via: nginx
webroot: www
backdrush: 1.x-1.x
xdebug: true
services:
database:
type: mariadb:10.3
tooling:
drush:
service: appserver
cmd: drush --root=/app/www --uri=https://forum.lndo.site
pull-db:
service: appserver
description: 'Get the latest DB from forum.backdropcms.org'
cmd:
- appserver: php /app/scripts/pull-db-files.php --database
- database: /helpers/sql-import.sh forum-latest-sanitized.sql.gz
- appserver: rm -f forum-latest-sanitized.sql.gz
pull-files:
service: appserver
description: 'Get the latest files from forum.backdropcms.org'
cmd:
- php /app/scripts/pull-db-files.php --files
- tar -xzf forum-files-latest.tar.gz
- rm -r www/files/ && mv files/ www/
- rm -f forum-files-latest.tar.gz