简体   繁体   English

无法在 Flexible App Engine 中将 PHP 语言从 7.3x 升级到 7.4x

[英]Unable to Upgrade PHP Language 7.3x to 7.4x in Flexible App Engine

Flexible App Engine, says that to specify a PHP language at runtime, it must be specified in the composer as such ( https://cloud.google.com/appengine/docs/flexible/php/runtime ): GCP Flexible App Engine,表示要在运行时指定 PHP 语言,必须在作曲家中这样指定( https://cloud.google.com/appengine/docs/flexible/php/runtime ): GCP

We have the same set up in out YML file and in our composer to specify the PHP language that looks like this:我们在 YML 文件和我们的作曲家中进行了相同的设置,以指定 PHP 语言,如下所示:

"require": {
    "php": "^7.4",
}

When we run out bitbucket pipeline, it runs successfully, but it tells us that the PHP language has not been specified when it has.当我们运行 bitbucket 管道时,它运行成功,但是它告诉我们 PHP 语言没有指定时指定。 Can someone please explain how we can successfully set our PHP language in App Engine Flexible Environment.有人能解释一下我们如何在 App Engine 柔性环境中成功设置 PHP 语言吗?

Bitbucket Pipeline Bitbucket 管道

We have tried specifying it in the config like this.我们试过像这样在配置中指定它。

"config": {
    "platform": {
        "php": "7.4"
    },

We have tried specifying the language in the YML file like this.我们试过像这样在 YML 文件中指定语言。

runtime: php74
env: flex

Please assist.请协助。

From ( an archived copy ) of the reference URL provided in your question:来自您问题中提供的参考文献 URL 的( 存档副本):

When you specify the PHP version, use the format MAJOR.MINOR.* and do not specify the release version.当您指定 PHP 版本时,请使用格式MAJOR.MINOR.*并且不要指定发布版本。 The PHP runtime is regularly updated to the latest release version and only supports one release version at a time, so specifying a release version can cause an error. PHP runtime 会定期更新到最新的release 版本,一次只支持一个release 版本,所以指定release 版本会出错。

This bold highlight is already in the quoted docs.这个大胆的亮点已经在引用的文档中。

Given you're using:鉴于您正在使用:

"require": {
    "php": "^7.4",
}

Then I'd say:那么我会说:

  1. Wrong format: ^MAJOR.MINOR is not MAJOR.MINOR.*格式错误: ^MAJOR.MINOR不是MAJOR.MINOR.*
  2. Wrong version: The documentation archived from August 2022 states that there is PHP 7.2 and PHP 7.3 available.错误版本:自 2022 年 8 月归档的文档指出有 PHP 7.2 和 PHP 7.3 可用。 PHP 7.4 is not mentioned to be chosen from. PHP 7.4 未提及从中选择。

Under no circumstances I'd consider this configuration to work while not working unless proven that this is not a dead Google API.在任何情况下,我都不会认为此配置在不工作时工作,除非证明这不是死掉的 Google API。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 为什么在 App Engine Flexible dockerfile 中没有执行 manage.py 文件? - Why the manage.py file is not executed in the App Engine Flexible dockerfile? Numpy 在 Python3 Google App Flexible Engine 中失败 - Numpy failing in Python3 Google App Flexible Engine App Engine Flexible 和 CloudSQL 之间的 Google VPC 内的流量是否加密 - Is traffic encrypted inside Google VPC between App Engine Flexible and CloudSQL 将 App Engine flexible 降级到 App Engine 标准环境 - Downgrade App engine flexible to app engine standard environment 使用 X.509 证书通过 GCP 应用引擎设置 TLS 身份验证 - Setup TLS authentication with GCP app engine using X.509 certificate 无法在 PowerShell 7.3.x 中安装“Az”模块 - Can't Install `Az` module in PowerShell 7.3.x Google App Engine Flexible env 的定价,一节 500 美元的课程 - Pricing of Google App Engine Flexible env, a $500 lesson 无法从 ssh 到应用引擎实例从 docker - Unable to ssh to app engine instance from docker 如何在 Google App Engine 柔性环境中设置 jetty 线程池 - how to set the jetty thread pool in Google App Engine flexible environment App Engine 灵活环境 - Dockerfile 安装过时版本的 GDAL - App Engine Flexible Environment - Dockerfile installing outdated version of GDAL
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM