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