Run more Drush commands during deployment
This commit is contained in:
parent
7a75f6b07c
commit
526f567da1
|
@ -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 }}'
|
||||
|
|
|
@ -15,8 +15,11 @@ ansistrano_after_update_code_tasks_file: '{{ playbook_dir }}/deploy/after-update
|
|||
|
||||
app_hash_salt: '{{ vault_app_hash_salt }}'
|
||||
|
||||
release_drush_path: '{{ ansistrano_release_path.stdout }}/vendor/bin/drush'
|
||||
release_web_path: '{{ ansistrano_release_path.stdout }}/{{ project_web_dir }}'
|
||||
|
||||
drupal_settings:
|
||||
- drupal_root: '{{ ansistrano_release_path.stdout }}/{{ project_web_dir }}'
|
||||
- drupal_root: '{{ release_web_path }}'
|
||||
sites:
|
||||
- name: default
|
||||
settings:
|
||||
|
|
Loading…
Reference in a new issue