Re-add ansistrano and circle files
This commit is contained in:
parent
20d2a42a82
commit
9cf83920b2
7 changed files with 101 additions and 10 deletions
25
ansible/deploy/after-symlink-shared.yml
Normal file
25
ansible/deploy/after-symlink-shared.yml
Normal 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 }}'
|
5
ansible/deploy/after-symlink.yml
Normal file
5
ansible/deploy/after-symlink.yml
Normal file
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
- name: Reload nginx
|
||||
service:
|
||||
name: nginx
|
||||
state: reloaded
|
Loading…
Add table
Add a link
Reference in a new issue