Fix Laravel Mix deployment
This commit is contained in:
parent
b8b92361da
commit
13344df4ca
|
@ -16,8 +16,6 @@
|
||||||
ansistrano_deploy_via: git
|
ansistrano_deploy_via: git
|
||||||
ansistrano_git_repo: https://github.com/opdavies/oliverdavies.uk.git
|
ansistrano_git_repo: https://github.com/opdavies/oliverdavies.uk.git
|
||||||
ansistrano_git_branch: "{{ git_branch }}"
|
ansistrano_git_branch: "{{ git_branch }}"
|
||||||
ansistrano_shared_paths:
|
|
||||||
- node_modules
|
|
||||||
ansistrano_keep_releases: 3
|
ansistrano_keep_releases: 3
|
||||||
ansistrano_allow_anonymous_stats: false
|
ansistrano_allow_anonymous_stats: false
|
||||||
ansistrano_after_symlink_shared_tasks_file: "{{ playbook_dir }}/deploy/after-symlink-shared.yml"
|
ansistrano_after_symlink_shared_tasks_file: "{{ playbook_dir }}/deploy/after-symlink-shared.yml"
|
||||||
|
|
|
@ -5,21 +5,13 @@
|
||||||
working_dir: "{{ ansistrano_release_path.stdout }}"
|
working_dir: "{{ ansistrano_release_path.stdout }}"
|
||||||
|
|
||||||
- name: Generate the site once without assets
|
- name: Generate the site once without assets
|
||||||
command: composer run prod
|
command: composer run prod chdir={{ ansistrano_release_path.stdout }}
|
||||||
args:
|
|
||||||
chdir: "{{ ansistrano_release_path.stdout }}"
|
|
||||||
|
|
||||||
- name: Install Node dependencies
|
- name: Install Node dependencies
|
||||||
command: yarn install
|
command: yarn install chdir={{ ansistrano_release_path.stdout }}
|
||||||
args:
|
|
||||||
chdir: "{{ ansistrano_release_path.stdout }}"
|
|
||||||
|
|
||||||
- name: Install Laravel Mix assets
|
- name: Generate assets with Laravel Mix
|
||||||
command: yarn run production
|
command: yarn run production chdir={{ ansistrano_release_path.stdout }}
|
||||||
args:
|
|
||||||
chdir: "{{ ansistrano_release_path.stdout }}"
|
|
||||||
|
|
||||||
- name: Generate the site, including assets
|
- name: Generate the site, including assets
|
||||||
command: composer run prod
|
command: composer run prod chdir={{ ansistrano_release_path.stdout }}
|
||||||
args:
|
|
||||||
chdir: "{{ ansistrano_release_path.stdout }}"
|
|
||||||
|
|
Reference in a new issue