Test deploying with ansistrano

This commit is contained in:
Oliver Davies 2017-10-30 00:15:20 +00:00
parent 52797cd0c1
commit 38e76328d6
2 changed files with 10 additions and 10 deletions

View file

@ -2,9 +2,9 @@
- hosts: web
vars:
ansistrano_deploy_to: '/var/www/oliverdavies.uk'
ansistrano_deploy_via: 'git'
ansistrano_git_repo: 'https://github.com/opdavies/oliverdavies.uk.git'
ansistrano_deploy_to: /var/www/oliverdavies.uk
ansistrano_deploy_via: git
ansistrano_git_repo: https://github.com/opdavies/oliverdavies.uk.git
ansistrano_shared_paths:
- node_modules
ansistrano_keep_releases: 3

View file

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