-
Notifications
You must be signed in to change notification settings - Fork 3
/
phapp.yml
46 lines (46 loc) · 1.42 KB
/
phapp.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
# A full, commented example containing all supported manifest attributes.
---
# A machine readable name of your application. Valid names consist of
# alphanumeric characters, dashes and underscores only.
name: example-app
# A human readable description of your application.
description: |
The app description.
git:
# The main Git repository url.
url: [email protected]/vendor/project.git
# A list of git mirrors of the main repository.
# Mirrors are kept up to date when pushing changes.
mirrors:
mirror1: mirror1-url
commands:
setup: |
echo PHAPP_ENV=$PHAPP_ENV > .env
environment: |
source .env
build: |
composer install --no-interaction --no-dev
clean: |
rm -rf vendor
status: |
drush status --fields=bootstrap | grep 'bootstrap' -q
init: |
drush sql-create -y &&
zcat dumps/init.sql.gz | drush sql:cli &&
drush updatedb -y &&
# Skip config-import when there is no config.
if [ -f config/sync/core.extension.yml ]; then
drush cim -y && drush cr
fi
drush locale:update
install: |
chmod +w web/sites/default/settings.php &&
drush sql-create -y &&
drush site-install --account-name=dru_admin --account-pass=Chici3Je -y --config-dir=../config/sync standard
update: |
drush updatedb -y &&
# Skip config-import when there is no config.
if [ -f config/sync/core.extension.yml ]; then
drush cim -y && drush cr
fi
drush locale:update