26 lines
633 B
YAML
26 lines
633 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
|
|
args:
|
|
chdir: "{{ ansistrano_release_path.stdout }}"
|
|
|
|
- name: Install Node dependencies
|
|
command: yarn install
|
|
args:
|
|
chdir: "{{ ansistrano_release_path.stdout }}"
|
|
|
|
- name: Install Laravel Mix assets
|
|
command: yarn run production
|
|
args:
|
|
chdir: "{{ ansistrano_release_path.stdout }}"
|
|
|
|
- name: Generate the site, including assets
|
|
command: composer run prod
|
|
args:
|
|
chdir: "{{ ansistrano_release_path.stdout }}"
|