oliverdavies.uk/ansible/deploy/after-symlink-shared.yml

26 lines
656 B
YAML
Raw Normal View History

---
- name: Install Composer dependencies
composer:
command: install
working_dir: "{{ ansistrano_release_path.stdout }}"
- name: Generate the site once without assets
command: composer run prod
args:
chdir: "{{ ansistrano_release_path.stdout }}"
- name: Install Node dependencies
command: yarn install
args:
chdir: "{{ ansistrano_release_path.stdout }}"
- name: Install Webpack Encore assets
2018-01-17 07:31:41 +00:00
command: './node_modules/.bin/encore production'
args:
chdir: "{{ ansistrano_release_path.stdout }}"
- name: Generate the site, including assets
command: composer run prod
args:
chdir: "{{ ansistrano_release_path.stdout }}"