Support

Account

Home Forums ACF PRO Install ACF 5 via composer problem with environment variable ACF_PRO

Unread

Install ACF 5 via composer problem with environment variable ACF_PRO

  • Hi

    Sorry in advance if I should ask the support, please let me know.
    I am quite new with composer and I tried to install ACF Pro via https://github.com/PhilippBaschke/acf-pro-installer from @philippbaschke. By the way, many thanks for that!

    I got the following issue:

    [PhilippBaschke\ACFProInstaller\Exceptions\MissingKeyException]
      Could not find a key for ACF PRO. Please make it available via the environm
      ent variable ACF_PRO_KEY

    I have a .env which is in the same folder as my composer.json.
    On my production+staging the .env is called as symlinked.

    I put my key inside so my .env looks like:

    DB_NAME='****'
    DB_USER='root' 
    DB_PASSWORD='' 
    DB_HOST='localhost' 
    ACF_PRO_KEY='b3Jk******************************************'

    I assume my composer.json is good as if I put the key directly inside the Plugin.php of the composer plugin, it’s working fine
    Is there another way that I can setup my key?
    Many thanks for your help

    EDIT : I changed for statis website call from composer, so we can close this ticket

Viewing 1 post (of 1 total)

The topic ‘Install ACF 5 via composer problem with environment variable ACF_PRO’ is closed to new replies.