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

kle*_*ell 13 php google-app-engine

运行deploy命令:

appcfg.py update ./appengine-project
Run Code Online (Sandbox Code Playgroud)

我开始看到这个错误:

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 ---
Run Code Online (Sandbox Code Playgroud)

我在本地运行PHP 5.5.我几天前就没有问题就部署了我的应用程序.

kle*_*ell 27

这篇Google网上论坛帖子让我整理出来.

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

runtime: php
Run Code Online (Sandbox Code Playgroud)

至:

runtime: php55
Run Code Online (Sandbox Code Playgroud)

之后,部署成功.