【问题标题】:Deploy PHP using cURL in GAE在 GAE 中使用 cURL 部署 PHP
【发布时间】: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


【解决方案1】:

我也遇到了同样的问题。

您必须更新sdk,download与您的平台对应的文件并安装它。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-09-29
    • 1970-01-01
    • 2012-01-23
    • 1970-01-01
    • 1970-01-01
    • 2015-05-13
    相关资源
    最近更新 更多