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

26 lines
657 B
YAML
Raw Normal View History

2018-05-06 20:51:35 +00:00
---
- name: Install Composer dependencies
composer:
command: install
working_dir: "{{ ansistrano_release_path.stdout }}"
- name: Generate the site once without assets
command: vendor/bin/sculpin generate -e prod
args:
chdir: '{{ ansistrano_release_path.stdout }}'
- name: Install Node dependencies
command: yarn install
args:
chdir: '{{ ansistrano_release_path.stdout }}'
- name: Generate assets
command: yarn build
args:
chdir: '{{ ansistrano_release_path.stdout }}'
- name: Generate the site, including assets
command: ./vendor/bin/sculpin generate -e prod
args:
chdir: '{{ ansistrano_release_path.stdout }}'