Re-order deployment steps
Ensure that the configuration import is run before the database updates, so that any new fields are created that are needed within the update steps such as `field_type` on the talk node type.
This commit is contained in:
parent
5f00b1cf04
commit
4e8c464dc8
|
@ -16,6 +16,13 @@
|
||||||
chdir={{ release_web_path }}
|
chdir={{ release_web_path }}
|
||||||
changed_when: false
|
changed_when: false
|
||||||
|
|
||||||
|
- name: Import configuration
|
||||||
|
command: >
|
||||||
|
{{ release_drush_path }} config-import -y
|
||||||
|
chdir={{ release_web_path }}
|
||||||
|
register: config_import_result
|
||||||
|
changed_when: "'There are no changes to import' not in config_import_result.stderr"
|
||||||
|
|
||||||
- name: Run database updates
|
- name: Run database updates
|
||||||
command: >
|
command: >
|
||||||
{{ release_drush_path }}
|
{{ release_drush_path }}
|
||||||
|
@ -24,11 +31,4 @@
|
||||||
register: update_database_result
|
register: update_database_result
|
||||||
changed_when: "'No pending updates' not in update_database_result.stderr"
|
changed_when: "'No pending updates' not in update_database_result.stderr"
|
||||||
|
|
||||||
- name: Import configuration
|
|
||||||
command: >
|
|
||||||
{{ release_drush_path }} config-import -y
|
|
||||||
chdir={{ release_web_path }}
|
|
||||||
register: config_import_result
|
|
||||||
changed_when: "'There are no changes to import' not in config_import_result.stderr"
|
|
||||||
|
|
||||||
- include: ../includes/build-theme-assets.yml
|
- include: ../includes/build-theme-assets.yml
|
||||||
|
|
Loading…
Reference in a new issue