【发布时间】:2015-02-27 15:41:46
【问题描述】:
我刚刚收到一个好消息,即现在支持完整的 cURL。 我按照说明在 app.yaml 中将“runtime:php”替换为“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 可能在他们添加它时已经更新。尝试更新。 cloud.google.com/appengine/…
-
耶利米是正确的。 php55 是一项新功能,仅适用于 GAE SDK 1.9.18 及更高版本。
标签: php google-app-engine curl