Bedrock
For development, use an auth.json file in the Bedrock project folder – but it should not be committed to the repository, but rather added to .gitignore as it is a secret (the ACF PRO license), similar to the .env file.
{
"http-basic": {
+ "connect.advancedcustomfields.com": {
+ "username": "[ACF PRO license key]",
+ "password": "https://[domain.tld]"
+ }
}
}
Use the ACF PRO license key as the username.
The password should be the site host (…
In your posted configuration, there is a tab missing for the site (mysite.com), and tabs/spaces are significant in YAML.
I appreciate the response - I actually used your guide as my reference. Still, that example was typed into here instead of copy and paste and was merely illustrative of the content. I have the correct spacing in my yaml file.
Maybe worth noting(?): Even with a clean composer file that doesn’t reference ACF anywhere, and removing the composer_authentications: block from my vault file - I get this error when trying to deploy:
TASK [deploy : Setup composer authentications (HTTP Basic)] *******************************************************
fatal: [kinsta_staging]: FAILED! => {"msg": "Invalid data passed to 'loop', it requires a list, got this instead: set(). Hint: If you passed a list/dict of just one element, try adding wantlist=True to your lookup invocation or use q/query instead of lookup."}
One mistake I often committed more often than I should, while testing Trellis setups, is incorrectly assuming that the production configuration directory is used, instead of e.g. staging, maybe you are actually provisioning with the staging directory - and not with the production one?
Also put your wordpress_sites.yml through a linter (e.g. one built into VSCode).
When you use an online linter, you may want to redact some information.
Yup, triple-checked, linted etc - all fine
Installed a clean version of trellis using the CLI, just as default as it gets - same error:
TASK [deploy : Setup composer authentications (HTTP Basic)] *******************************************************
fatal: [kinsta_staging]: FAILED! => {"msg": "Invalid data passed to 'loop', it requires a list, got this instead: set(). Hint: If you passed a list/dict of just one element, try adding wantlist=True to your lookup invocation or use q/query instead of lookup."}
For anyone else who might see this - double check your ansible… Mine was 2.9.6, and after upgrading to 2.15 everything went just fine. If anyone is listening: might want to add a check to the trellis cli when installing, similar to the way pip version check works.