forked from drunomics/drupal-project
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathphapp.yml
42 lines (40 loc) · 1.34 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
name: {{ project }}
description: 'Describe your application.'
git:
url: 'git@bitbucket.org:drunomics/{{ project }}.git'
commands:
setup: |
[[ ! -f .env-$PHAPP_ENV.dist ]] || ln -sf .env-$PHAPP_ENV.dist .env
echo "PHAPP_ENV=$PHAPP_ENV" > .current.env
./scripts/setup-base.sh
environment: |
source dotenv/loader.sh
build: |
EXTRA_ARGS=$([[ $PHAPP_ENV_MODE = 'production' ]] && echo '--no-dev' || echo '');
composer install --no-interaction $EXTRA_ARGS
clean: |
# Clean composer vendor via the provided script.
composer clean
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:check && drush locale:update
install: |
chmod +w web/sites/default/settings.php &&
drush sql-create -y &&
SITE=${SITE:-default} &&
drush site-install -y --sites-subdir=$SITE --config-dir=../config/sync ${INSTALL_PROFILE:-minimal}
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:check && drush locale:update