Re-order deployment steps
Re-order the deployment steps, ensuring that the Drupal cache is rebuilt before trying to run the custom Drush command to ensure that it is found. References #55.
This commit is contained in:
parent
1b4dd26c15
commit
cee084092b
|
@ -4,6 +4,25 @@
|
||||||
command: install
|
command: install
|
||||||
working_dir: '{{ ansistrano_release_path.stdout }}'
|
working_dir: '{{ ansistrano_release_path.stdout }}'
|
||||||
|
|
||||||
|
- name: Generate settings.php file
|
||||||
|
include_role:
|
||||||
|
name: opdavies.drupal_settings_files
|
||||||
|
|
||||||
|
- name: Import configuration
|
||||||
|
command: '{{ release_drush_path }} config-import -y'
|
||||||
|
args:
|
||||||
|
chdir: '{{ release_web_path }}'
|
||||||
|
|
||||||
|
- name: Run database updates
|
||||||
|
command: '{{ release_drush_path }} updatedb -y'
|
||||||
|
args:
|
||||||
|
chdir: '{{ release_web_path }}'
|
||||||
|
|
||||||
|
- name: Rebuild cache
|
||||||
|
command: '{{ release_drush_path }} cache-rebuild'
|
||||||
|
args:
|
||||||
|
chdir: '{{ release_web_path }}'
|
||||||
|
|
||||||
- name: Generate front-end assets
|
- name: Generate front-end assets
|
||||||
command: |
|
command: |
|
||||||
{{ item.command }}
|
{{ item.command }}
|
||||||
|
@ -27,21 +46,7 @@
|
||||||
- body-field-values.txt
|
- body-field-values.txt
|
||||||
- node_modules
|
- node_modules
|
||||||
|
|
||||||
- name: Generate settings.php file
|
- name: Rebuild cache again
|
||||||
include_role:
|
|
||||||
name: opdavies.drupal_settings_files
|
|
||||||
|
|
||||||
- name: Import configuration
|
|
||||||
command: '{{ release_drush_path }} config-import -y'
|
|
||||||
args:
|
|
||||||
chdir: '{{ release_web_path }}'
|
|
||||||
|
|
||||||
- name: Run database updates
|
|
||||||
command: '{{ release_drush_path }} updatedb -y'
|
|
||||||
args:
|
|
||||||
chdir: '{{ release_web_path }}'
|
|
||||||
|
|
||||||
- name: Rebuild cache
|
|
||||||
command: '{{ release_drush_path }} cache-rebuild'
|
command: '{{ release_drush_path }} cache-rebuild'
|
||||||
args:
|
args:
|
||||||
chdir: '{{ release_web_path }}'
|
chdir: '{{ release_web_path }}'
|
||||||
|
|
Loading…
Reference in a new issue