This commit is contained in:
Oliver Davies 2017-10-29 19:25:30 +00:00
parent bcc97afe49
commit 52797cd0c1
5 changed files with 44 additions and 0 deletions

View file

@ -0,0 +1,20 @@
---
- name: "Install node dependencies"
command: 'yarn install'
args:
chdir: "{{ ansistrano_release_path.stdout }}"
- name: 'Generate assets'
command: 'npm run prod'
args:
chdir: "{{ ansistrano_release_path.stdout }}"
- name: 'Install Composer dependencies'
composer:
command: install
working_dir: "{{ ansistrano_release_path.stdout }}"
- name: 'Generate the site'
command: 'composer run prod'
args:
chdir: "{{ ansistrano_release_path.stdout }}"

View file

@ -0,0 +1,3 @@
---
- name: Reload nginx
service: name=nginx state=reloaded