gpt4 book ai didi

php - 当我尝试将我的 PHP 应用程序部署到 Google App Engine 时,为什么突然出现 400 错误?

转载 作者:IT王子 更新时间:2023-10-29 00:10:53 26 4
gpt4 key购买 nike

运行部署命令:

appcfg.py update ./appengine-project

我开始看到这个错误:

Error 400: --- begin server output ---
PHP 5.4 applications are prevented from being deployed to Google App
Engine from any version of the SDK, including older ones. If you need
to continue to deploy PHP 5.4 applications for compatibility reasons,
you can request that your application be whitelisted for PHP 5.4
deployment by visiting http://goo.gl/qjKEuk.
--- end server output ---

我在本地运行 PHP 5.5。我在几天前部署了我的应用程序,没有出现任何问题。

最佳答案

This Google Groups post here帮我解决了问题。

在我的 app.yaml 文件中,我只需要更改这一行:

runtime: php

到:

runtime: php55

之后部署成功。

关于php - 当我尝试将我的 PHP 应用程序部署到 Google App Engine 时,为什么突然出现 400 错误?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30045149/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com