I’m following my Trellis/bedrock/Sage discovery: after my first problem, i managed to install everything and i have now my VM working thanks to Trellis with Bedrock and Sage installed. But in the meantime, Wordpress has been updated from 4.5.1 to 4.5.2 so i wanted to update the Wordpress used in my project and the VM.
To do it i tried that:
update the Wordpress version in the “composer.json” file
run “composer update”.
In response to that command, i unfortunately got a “composer: command not found” error.
I thought that Composer was installed via the “composer” ansible role during Trellis installation.
I guess that there is something obvious here that i miss, so any help is welcome
OK, so it means that Composer is installed by Vagrant in the VM system and then not synk back to my OS as it’s not installed in the WP site path.
In the VM, i found the updated “composer.json” file in the “vagrant-nfs-roots-test1.com” folder at the root of the VM so i ran composer update in that folder and guess what… it’s working
Thanks for the help: it worked and i learned a valuable lesson!
If you forget to run ansible-galaxy install -r requirements.yml before you run vagrant up on the first time you set up Trellis you will run into this issue: ERROR! the role 'composer' was not found in /Users/../trellis/roles:/Users/.. The error appears to have been in ../trellis/dev.yml'...
Destroy your box, install the requirements, and try again.