-
Notifications
You must be signed in to change notification settings - Fork 2
/
taskman.yml.dist
55 lines (49 loc) · 1.83 KB
/
taskman.yml.dist
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
backdrop:
root: build
base_url: "http://127.0.0.1:8080"
site:
name: "Site name"
mail: "[email protected]"
profile: "standard"
update: "false"
locale: "en"
sites_subdir: "default"
# Administrator account information.
account:
name: "admin"
password: "admin"
mail: "[email protected]"
# Database settings.
database:
scheme: "mysql"
host: "db"
port: "3306"
name: "backdrop"
user: "root"
password: ""
site-install:
options:
account-name: ${backdrop.account.name}
account-pass: ${backdrop.account.password}
account-mail: ${backdrop.account.mail}
drush:
options:
uri: "${backdrop.base_url}"
commands:
backdrop:setup:
- { task: "copy", from: "vendor/backdrop/backdrop/", to: "${backdrop.root}", force: true }
- { task: "copy", from: "vendor/backdrop-contrib/drush/", to: ".drush/commands", force: true }
- ./vendor/bin/drush cc drush
- { task: "chmod", file: "${backdrop.root}/files", permissions: 0777, recursive: true }
- { task: "remove", file: "${backdrop.root}/settings.local.php" }
- { task: "append", file: "${backdrop.root}/settings.local.php", text: "<?php\n" }
- { task: "append", file: "${backdrop.root}/settings.local.php", text: "$database = 'mysql://root:@db/backdrop';" }
backdrop:install:
- ./vendor/bin/drush --root=${backdrop.root}
si
--account-name=${backdrop.site-install.options.account-name}
--account-pass=${backdrop.site-install.options.account-pass}
--account-mail=${backdrop.site-install.options.account-mail}
--sites-subdir=${backdrop.site.sites_subdir}
--db-url="${backdrop.database.scheme}://${backdrop.database.user}:${backdrop.database.password}@${backdrop.database.host}:${backdrop.database.port}/${backdrop.database.name}"
${backdrop.site.profile}