Run more Drush commands during deployment

This commit is contained in:
Oliver Davies 2020-02-08 00:24:26 +00:00
parent 7a75f6b07c
commit 526f567da1
2 changed files with 13 additions and 1 deletions

View file

@ -7,3 +7,12 @@
- name: Generate settings.php file
include_role:
name: './roles/drupal-settings'
- name: Import configuration
command: '{{ release_drush_path }} config-import -y chdir={{ release_web_path }}'
- name: Run database updates
command: '{{ release_drush_path }} updatedb -y chdir={{ release_web_path }}'
- name: Rebuild cache
command: '{{ release_drush_path }} cache-rebuild chdir={{ release_web_path }}'