I found this while looking for a way to install ACF Pro without committing our license key to the Git repo in composer.json:
Below is a VERY ROUGH SKETCH for how to make this work with Trellis without committing your unencrypted ACF Pro key to your Git repo. I wanted to get this up for others to see and comment on:
Adapting this for Trellis:
# Documentation: https://roots.io/trellis/docs/vault/ vault_mysql_root_password: devpw # Variables to accompany `group_vars/development/wordpress_sites.yml` # Note: the site name (`example.com`) must match up with the site name in the above file. vault_wordpress_sites: example.com: admin_password: admin env: acf_pro_key: YOUR_KEY_HERE db_password: example_dbpassword
You’ll need to reprovision your environment to regenerate the
.env file where your key is put.