在GAE中使用cURL部署PHP


Deploy PHP using cURL in GAE

我刚刚收到一个好消息,现在支持完整的cURL。我按照说明将app.yaml中的"runtime:php55"替换为"runtime:php55",并使用Google app Engine Launcher将我的php代码部署到Google app Engine。

系统响应错误,如附件所示:

..deploy response...............
2015-02-27 23:01:52 Running command: "['C:''python27_x64''pythonw.exe', '-u', 'C:''Program Files''Google''Cloud SDK''google-cloud-sdk''platform''google_appengine''appcfg.py', '--no_cookies', u'--email=jihshiun@gmail.com', '--passin', 'update', 'D:''Documents''GAE CloudSite''Hi']"
Usage: appcfg.py [options] update <directory> | [file, ...]
appcfg.py: error: Error parsing D:'Documents'GAE CloudSite'Hi'app.yaml: Unable to assign value 'php55' to attribute 'runtime':
Value 'php55' for runtime does not match expression '^(?:contrib-dart|dart|go|php|python|python27|java|java7|vm|custom)$'
  in "D:'Documents'GAE CloudSite'Hi'app.yaml", line 3, column 10.
2015-02-27 23:02:04 (Process exited with code 2)
.......................

我还试图在文件中添加一个扩展名为"curl.so"的php.ini,但部署也失败了,得到了相同的响应。

我错过什么了吗?请告知。

我也遇到过同样的问题。

你必须更新sdk,下载对应于你的平台的文件并安装它。