Hi, I am using app platform for deploying a PHP application in Laravel. How to manually tell the container which PHP version to use?

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×
Submit an Answer
2 answers

👋🏼 @tntstudio

You can configure the PHP version in composer.json like so:

{
  "require": {
    "php": "^7.2.0"
  }
}

For more details please see the PHP buildpack documentation

Thanks for the fast reply. In the meanwhile I figured out that the App
platform is automatically taking my Dockerfile, which I don’t won’t because its differently configured for my local development. How can I disable this?