After changing the site name in wordpress_sites.yml
, then running vagrant provision
, I get following error, apparently not re-creating the composer.json
file in the srv folder. Not sure how to get ansible to re-run the site srv and composer provision (unless I have to initialize composer manually?)
System info:
Ansible 2.7.9; Vagrant 2.2.4; Darwin
Trellis 1.0.2: March 13th, 2019
---------------------------------------------------
Composer could not find a composer.json file in
/srv/www/chargers.org/current To initialize a project, please create a
composer.json file as described in the https://getcomposer.org/ "Getting
Started" section
failed: [default] (item=chargers.org) => {"changed": false, "item": {"key": "chargers.org", "value": {"admin_email": "admin@chargers.test", "cache": {"enabled": false}, "local_path": "../site", "multisite": {"enabled": false}, "site_hosts": [{"canonical": "chargers.test", "redirects": ["www.chargers.test"]}], "ssl": {"enabled": true, "provider": "self-signed"}}}, "stdout": "Composer could not find a composer.json file in /srv/www/chargers.org/current\nTo initialize a project, please create a composer.json file as described in the https://getcomposer.org/ \"Getting Started\" section\n", "stdout_lines": ["Composer could not find a composer.json file in /srv/www/chargers.org/current", "To initialize a project, please create a composer.json file as described in the https://getcomposer.org/ \"Getting Started\" section"]}