I am migrating an old trellis vagrant project to the latest version (1.22.2) using lima on MacOS Ventura (M1).
In composer.json under extras I have
"wordpress-install-dir": "web/wp"
When I run trellis provision development
I get a path error “This does not seem to be a WordPress installation. The used path is: /srv/www/***.com/current/”
TASK [wordpress-install : Install WP] ******************************************
failed: [default] (item=***.com) => {"ansible_loop_var": "item", "changed": true, "cmd": ["wp", "core", "install", "--allow-root", "--url=https://***.test", "--title=***.com", "--admin_user=admin", "--admin_password=password", "--admin_email=name@domain.com"], "delta": "0:00:00.077987", "end": "2024-06-11 17:45:11.594781", "item": {"key": "***.com", "value": {"admin_email": "name@domain.com", "cache": {"enabled": false}, "local_path": "../site", "multisite": {"enabled": false}, "site_hosts": [{"canonical": "***.test", "redirects": ["www.***.test"]}], "ssl": {"enabled": true, "provider": "self-signed"}}}, "msg": "non-zero return code", "rc": 1, "start": "2024-06-11 17:45:11.516794", "stderr": "Error: This does not seem to be a WordPress installation.\nThe used path is: /srv/www/***.com/current/\nPass --path=`path/to/wordpress` or run `wp core download`.", "stderr_lines": ["Error: This does not seem to be a WordPress installation.", "The used path is: /srv/www/***.com/current/", "Pass --path=`path/to/wordpress` or run `wp core download`."], "stdout": "", "stdout_lines": []}
PLAY RECAP *********************************************************************
default : ok=122 changed=6 unreachable=0 failed=1 skipped=35 rescued=0 ignored=0
exit status 2
I’ve checked other posts regarding this but they seem to be vagrant specific (and from 2019 and earlier). Does the ‘wordpress-install-dir’ entry need to be put elsewhere in composer.json in v1.22.2?
Thanks,
Julian