I spent a bit of time on this and since original post is closed wanted to expand a tiny bit on my experiences with the solution by @fullyint :
Local dev
# run commands in local machine Bedrock `site` dir
composer remove johnpbloch/wordpress
composer clear-cache
composer require johnpbloch/wordpress:4.7.3
# NOTE I used: composer require johnpbloch/wordpress
# to get the latest version
git add…, git commit…, git push…
Remote server
# run commands in local machine `trellis` dir
# edit `production` to be your <environment>
# edit `example.com` to be your site name
ansible "web:&production" -m command -a "composer clear-cache" -u web
ansible-playbook deploy.yml -e env=production -e site=example.com -e 'project_copy_folders=[]'
If you have customized project_copy_folders
, just temporarily remove vendor from your project_copy_folders
and run deploy.yml
(instead of using -e 'project_copy_folders=[]'
in second command above).
My Notes
I had previously upgraded to johnpbloch/wordpress:4.9
to I did not include the version number in composer require johnpbloch/wordpress
.
This, today, adds johnpbloch/wordpress: '^4.9'
to the composer.json
file.
I was still getting an error on deploy : WordPress Installed?
:
PHP Fatal error: Uncaught Error: Call to undefined function apply_filters()
Solution was to ssh into the server and run sudo wp cli update --allow-root
.
Thanks as always. Happy New Year Roots Community.