From 5ec999e3f2dcecf71bc9436c074d7dce3e0bfc44 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Fri, 12 Jun 2020 02:15:52 +0100 Subject: [PATCH] Re-order deploy steps Run database changes before importing configuration. References #127 --- tools/ansible/deploy/after-update-code.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tools/ansible/deploy/after-update-code.yml b/tools/ansible/deploy/after-update-code.yml index 3ea25e2..79344fb 100644 --- a/tools/ansible/deploy/after-update-code.yml +++ b/tools/ansible/deploy/after-update-code.yml @@ -8,13 +8,13 @@ include_role: name: opdavies.drupal_settings_files -- name: Import configuration - command: '{{ release_drush_path }} config-import -y' +- name: Run database updates + command: '{{ release_drush_path }} updatedb -y' args: chdir: '{{ release_web_path }}' -- name: Run database updates - command: '{{ release_drush_path }} updatedb -y' +- name: Import configuration + command: '{{ release_drush_path }} config-import -y' args: chdir: '{{ release_web_path }}'