Re-add ansistrano and circle files

This commit is contained in:
Oliver Davies 2018-05-06 21:51:35 +01:00
parent 20d2a42a82
commit 9cf83920b2
7 changed files with 101 additions and 10 deletions

View file

@ -0,0 +1,25 @@
---
- 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 }}'

View file

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