diff --git a/examples/cf-php-sample-app/README.md b/examples/cf-php-sample-app/README.md index 8bf4e7b5..beb9c2b0 100644 --- a/examples/cf-php-sample-app/README.md +++ b/examples/cf-php-sample-app/README.md @@ -4,6 +4,6 @@ This App is an example of how to use the [Datadog Cloud Foundry Buildpack](https ## How to build and push -1. Run `./build.sh` to vendor Composer dependencies into a local `vendor/` folder so the app can be staged on offline Cloud Foundry environments. The `dd-trace-php` native extensions are provided by the Datadog buildpack itself once `DD_APM_INSTRUMENTATION_ENABLED=true` is set. +1. Run `./build.sh` to vendor Composer dependencies into a local `vendor/` folder. This is required because `htdocs/index.php` loads `../vendor/autoload.php`, while `php_buildpack`'s own `composer install` writes to `lib/vendor/` — and it also lets the app stage on offline Cloud Foundry environments. The `dd-trace-php` native extensions are provided by the Datadog buildpack itself once `DD_APM_INSTRUMENTATION_ENABLED=true` is set. 2. Update the `manifest.yml` file with any other extra configuration options. 3. Run `cf push --var DD_API_KEY= --var ENV=`, substituting `` with your Datadog API key value.