Issue deploying sage w/ trellis

I’ve pretty much re-created the sample roots project from scratch, with all default information / directory names the same (e.g. example.com, sage) and had it successfully deploy.

I noticed that my custom sage theme didn’t deploy with it, so I un-commented the lines in build-before.yml and started getting the following error while trying to deploy:

TASK [deploy : Install Composer dependencies] **********************************
System info:
  Ansible 2.4.0.0; Darwin
  Trellis at "Normalize `apt` tasks"
---------------------------------------------------
MODULE FAILURE
Shared connection to 138.197.165.176 closed.

Traceback (most recent call last):
  File "/tmp/ansible_2OAcug/ansible_module_command.py", line 213, in <module>
    main()
  File "/tmp/ansible_2OAcug/ansible_module_command.py", line 152, in main
    os.chdir(chdir)
OSError: [Errno 2] No such file or directory:
'/srv/www/example.com/releases/20171019135542/web/app/themes/sage'

fatal: [138.197.165.176]: FAILED! => {"changed": false, "failed": true, "rc": 0}
        to retry, use: --limit @/Users/30ptdesign/Trellis/example.com/trellis/deploy.retry

PLAY RECAP *********************************************************************
138.197.165.176            : ok=13   changed=4    unreachable=0    failed=1
localhost                  : ok=0    changed=0    unreachable=0    failed=0

I get the feeling that this path this part of the issue, but I’m not sure how to resolve it.
'/srv/www/example.com/releases/20171019135542/web/app/themes/sage'

Some help would be greatly appreciated.

P.S. All my files are pretty much identical to the default other than the production ip address, but let me know if you need any more detail.

Can you confirm that your theme is committed to your repo?

3 Likes

Thanks, that was it! Can’t believe I missed that.