[英]How to update php version on Google App Engine
对于 文档中提到的标准环境:
The PHP 7 runtime supports PHP 7.2, PHP 7.3, and PHP 7.4, and uses the latest stable release of the version that is specified in your app.yaml file. App Engine 会自动更新到新的补丁发布版本,但不会自动更新次要版本。 例如,您的应用程序可能部署在 PHP 7.3.0 和更高版本自动更新到版本 7.3.1,但不会自动更新到 PHP 7.4.0。
注意:
If you have a required PHP version specified in your composer.json file, you will have to remove the element for a successful deployment
。
composer.json 文件应包含 PHP 版本:
{
"require": {
"php": "7.4.*"
}
}
对于文档中提到的灵活环境:
The flexible runtime is declared in app.yaml:
runtime: php
env: flex
By default, the PHP runtime uses PHP 7.3, but you should explicitly declare your PHP version in the composer.json file to prevent your application from being automatically upgraded when a new version of PHP becomes available. 还支持 PHP 版本 7.2.*。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.