I modified composer so that It would include ACF Pro. Works fine in dev, but deploying to staging fails
“Could not find a key for ACF PRO. Please make it available via the environment variable ACF_PRO_KEY”
So I modified ./site/.env
ACF_PRO_KEY='xxxxmyvalidlicencekeyxxxx';
ran deploy again. Same issue.
So i edited the /config/environments/staging.php, adding
define('ACF_PRO_KEY', 'xxxxmyvalidlicencekeyxxxx');
Committed the staging branch, deployed again. Same.
So I logged via ssh to the staging machine, manually made the same modifications to the /current/config/enviornments/staging.php and /site/.env files.
Same error message.
I’m at loss here. Where should I add the constant so that composer picks it up?
Thank you,
A.