If your Composer configuration requires access to packages in private repositories, use the COMPOSER_AUTH environment variable to configure your authentication details. To configure the version used for your app, add a php dependency to composer.json like so: PHP 7.x will be used by default, unless a specific version is requested via composer.json by your app or a dependency. PHP versions 7.x and 8.x are supported.If no version is specified in your app, App Platform defaults to using version 8.1.18. The buildpack supports PHP runtime versions 7.4.x, 8.0.x, and 8.1.x. PHP Applications using BuildpacksĪpp Platform looks for any of the following to detect a PHP application:Ĭurrent Buildpack Version and Supported RuntimesĪpp Platform uses version 232 of the Heroku PHP Buildpack. Heroku-buildpack-php is utilized as the buildpack for detecting and building your PHP applications. If it supports the language or framework, it chooses an appropriate resource type and uses the proper buildpack to build the app and deploy a container. Otherwise, App Platform checks your code to determine what language or framework it uses. When you give App Platform access to your code, it defaults to using a Dockerfile if one is present in the root of the directory or specified in the app spec. App Platform is a Platform-as-a-Service (PaaS) offering that allows developers to publish code directly to DigitalOcean servers without worrying about the underlying infrastructure.Īpp Platform supports two ways to build an image for your app: Cloud Native Buildpacks and Dockerfiles.
0 Comments
Leave a Reply. |