By tntstudio
Hi, I am using app platform for deploying a PHP application in Laravel. How to manually tell the container which PHP version to use?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
šš¼ @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?
Hi @tntstudio,
I just noticed your second question,
If you have a Dockerfile in your repo root, it will be prioritized when creating the app via the UI. This is something weāre working on improving but here are some options in the mean time:
Dockerfile to e.g. Dockerfile.prod then create the app via the UI.doctl app create --spec .do/app.yaml. Since you donāt set dockerfile_path in the spec, the Dockerfile will not be used.Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOceanās Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow ā whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.