-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.lagoon.yml
37 lines (33 loc) · 1.07 KB
/
.lagoon.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
docker-compose-yaml: docker-compose.yml
project: solar-backend
tasks:
pre-rollout:
# - run:
# name: drush sql-dump
# # Takes a pre-rollout backup of production sites only.
# command: mkdir -p /app/web/sites/default/files/private/ && drush sql-dump --ordered-dump --gzip --result-file=/app/web/sites/default/files/private/pre-deploy-dump.sql.gz || true
# service: cli
# when: LAGOON_ENVIRONMENT_TYPE=="production"
post-rollout:
# - run:
# name: drush updb
# # This will only run if the database exists.
# command: |
# if [[ $(drush status --field=Database) == "Connected" ]]; then drush -y updb; fi
# service: cli
# - run:
# name: drush cim
# # Enable once config sync has been setup.
# command: drush -y cim
# service: cli
# - run:
# name: drush cr
# command: drush -y cr
# service: cli
environments:
main:
cronjobs:
- name: drush hourly cron
schedule: "M * * * *"
command: drush cron
service: cli