Fix Laravel Mix deployment

This commit is contained in:
Oliver Davies 2018-02-13 19:31:49 +00:00
parent b8b92361da
commit 13344df4ca
2 changed files with 5 additions and 15 deletions

View file

@ -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"

View file

@ -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 }}"