I have a working development environment setup. Now I am trying to deploy to my staging server but keep keep getting this message.
TASK [deploy : Run yarn install] ***********************************************
System info:
Ansible 2.2.1.0; Darwin
Trellis at "Allow for per-project packagist.com authentication"
---------------------------------------------------
[Errno 2] No such file or directory
fatal: [138.68.230.184]: FAILED! => {"changed": false, "cmd": "yarn install", "failed": true, "rc": 2}
This only happens when I edit build-before.yml.
If I comment everything out I am able to deploy no problem. Of course I don’t have any styling or anything for the theme. Is anyone else having this issue. I have searched through google and forum but cannot find anyone else with this issue.
This is my build-before.yml
# Placeholder `deploy_build_before` hook for building theme assets locally
# and then copying the files to the remote server
#
# Uncomment the lines below and replace `sage` with your theme folder
#
# ---
- name: Run yarn install
command: yarn install
connection: local
args:
chdir: "{{ project_local_path }}/web/app/themes/omni"
- name: Install Composer dependencies
command: composer install --no-ansi --no-dev --no-interaction --no-progress --optimize-autoloader --no-scripts
args:
chdir: "{{ deploy_helper.new_release_path }}/web/app/themes/omni"
- name: Compile assets for production
command: yarn run build:production
connection: local
args:
chdir: "{{ project_local_path }}/web/app/themes/omni"
- name: Copy project local files
synchronize:
src: "{{ project_local_path }}/web/app/themes/omni/dist"
dest: "{{ deploy_helper.new_release_path }}/web/app/themes/omni"
group: no
owner: no
rsync_opts: --chmod=Du=rwx,--chmod=Dg=rx,--chmod=Do=rx,--chmod=Fu=rw,--chmod=Fg=r,--chmod=Fo=r