Revert "Remove ansible, add Docker nginx config"
This reverts commit c900558d03
.
This commit is contained in:
parent
55c4f39dfa
commit
58779571d1
8 changed files with 223 additions and 138 deletions
20
ansible/deploy/after-symlink-shared.yml
Normal file
20
ansible/deploy/after-symlink-shared.yml
Normal file
|
@ -0,0 +1,20 @@
|
|||
---
|
||||
- name: Install node dependencies
|
||||
command: yarn install
|
||||
args:
|
||||
chdir: "{{ ansistrano_release_path.stdout }}"
|
||||
|
||||
- name: Build 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 }}"
|
3
ansible/deploy/after-symlink.yml
Normal file
3
ansible/deploy/after-symlink.yml
Normal file
|
@ -0,0 +1,3 @@
|
|||
---
|
||||
- name: Reload nginx
|
||||
service: name=nginx state=reloaded
|
Loading…
Add table
Add a link
Reference in a new issue