Follow the below mentioned steps to install Atatus in Heroku.

  1. Set Atatus Heroku PHP extension repo

    copy
    icon/buttons/copy
    heroku config:set HEROKU_PHP_PLATFORM_REPOSITORIES="https://s3.amazonaws.com/atatus-php-heroku-ext/heroku/"
    

    You need to set license key in the config to enable Atatus on Heroku.

    copy
    icon/buttons/copy
    heroku config:set ATATUS_LICENSE_KEY="lic_apm_********" ATATUS_APP_NAME="My PHP App"
    
  2. Add Atatus Heroku extension in composer.json from the previous remote package repository.

    copy
    icon/buttons/copy
    {
        "require": {
            "ext-atatus": "1.10.3"
        },
        "config": {
            "platform": {
                "ext-atatus": "1.10.3"
            }
        }
    }
    
  3. Install Atatus Heroku extension.

    copy
    icon/buttons/copy
    composer update ext-atatus
    
  4. Commit those changes to Heroku and deploy your application once again.

    copy
    icon/buttons/copy
    git add composer.json composer.lock
    git commit -m 'Add ext-atatus dependency to Heroku app'
    git push heroku master