Add Drush tasks
This commit is contained in:
parent
62a9b204a0
commit
b402df87af
|
@ -14,7 +14,12 @@
|
|||
ansistrano_deploy_to: "{{ app_project_root }}"
|
||||
ansistrano_keep_releases: 5
|
||||
ansistrano_after_symlink_shared_tasks_file: "{{ playbook_dir }}/deploy/after-symlink-shared.yml"
|
||||
ansistrano_after_symlink_tasks_file: "{{ playbook_dir }}/deploy/after-symlink.yml"
|
||||
ansistrano_after_update_code_tasks_file: "{{ playbook_dir }}/deploy/after-update-code.yml"
|
||||
ansistrano_shared_paths:
|
||||
- "{{ app_project_subdir }}/sites/default/files"
|
||||
ansistrano_shared_files:
|
||||
- "{{ app_project_subdir }}/sites/default/settings.php"
|
||||
|
||||
release_web_path: "{{ ansistrano_release_path.stdout }}/web"
|
||||
release_drush_path: "{{ ansistrano_release_path.stdout }}/vendor/bin/drush"
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
---
|
||||
- name: Install Composer dependencies
|
||||
composer:
|
||||
command: install
|
||||
working_dir: '{{ ansistrano_release_path.stdout }}'
|
||||
- name: Run database updates
|
||||
command: '{{ release_drush_path }} --root {{ release_web_path }} updatedb'
|
||||
|
|
3
ansible/deploy/after-symlink.yml
Normal file
3
ansible/deploy/after-symlink.yml
Normal file
|
@ -0,0 +1,3 @@
|
|||
---
|
||||
- name: Clear Drupal cache
|
||||
command: '{{ release_drush_path }} --root {{ release_web_path }} cache-rebuild'
|
5
ansible/deploy/after-update-code.yml
Normal file
5
ansible/deploy/after-update-code.yml
Normal file
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
- name: Install Composer dependencies
|
||||
composer:
|
||||
command: install
|
||||
working_dir: '{{ ansistrano_release_path.stdout }}'
|
Loading…
Reference in a new issue