Skip to content

Commit

Permalink
chore: update sensible defaults for lagoon.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
tobybellwood committed May 13, 2024
1 parent a2148ea commit 47ef02f
Showing 1 changed file with 19 additions and 7 deletions.
26 changes: 19 additions & 7 deletions .lagoon.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,35 @@ docker-compose-yaml: docker-compose.yml
project: drupal-solr

tasks:
# pre-rollout:
# - run:
# name: drush sql-dump
# 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
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:
# Enable once config sync has been setup.
# - run:
# name: drush cim
# # Enable once config sync has been setup.
# command: drush -y cim
# service: cli
- run:
name: drush updb
command: drush -y 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 cr
command: drush -y cr
service: cli

environments:
main:
cronjobs:
- name: drush hourly cron
schedule: "M * * * *"
command: drush cron
service: cli

0 comments on commit 47ef02f

Please sign in to comment.