oliverdavies.uk/ansible/deploy/after-symlink-shared.yml
2018-02-13 19:31:49 +00:00

18 lines
583 B
YAML

---
- name: Install Composer dependencies
composer:
command: install
working_dir: "{{ ansistrano_release_path.stdout }}"
- name: Generate the site once without assets
command: composer run prod chdir={{ ansistrano_release_path.stdout }}
- name: Install Node dependencies
command: yarn install chdir={{ ansistrano_release_path.stdout }}
- name: Generate assets with Laravel Mix
command: yarn run production chdir={{ ansistrano_release_path.stdout }}
- name: Generate the site, including assets
command: composer run prod chdir={{ ansistrano_release_path.stdout }}