Test deploying with ansistrano
This commit is contained in:
parent
52797cd0c1
commit
38e76328d6
|
@ -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
|
||||
|
|
|
@ -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 }}"
|
||||
|
|
Reference in a new issue