当将Google App Engine应用程序升级到灵活环境时,如何运行Google的aefix工具?

huangapple go评论83阅读模式
英文:

How do I run Google's aefix tool when upgrading a Google App Engine app to the flexible environment?

问题

我正在尝试将一个Google App Engine应用从标准环境升级到灵活环境。我遇到了一个类似于这里描述的问题,但我只看到以下错误:

ERROR: (gcloud.app.deploy) Your application does not satisfy all of the requirements for a runtime of type . Please correct the errors and try again.

我找不到详细说明缺失要求的日志。

Google在这里描述了如何将旧版(标准版)应用程序更新到灵活环境。他们建议运行aefix工具,但没有关于如何运行该工具的说明。我运行了go get google.golang.org/appengine/cmd/aefix来安装它。我还查看了源代码,看到以下用法要求:usage: aefix [-diff] [-r fixname,...] [-force fixname,...] [path ...]。然而,找不到aefix命令。(我还尝试运行$GOPATH/bin/aefix处的编译二进制文件,但它只是挂起)。

英文:

I am trying to upgrade a Google App Engine app from the standard environment to the flexible environment. I am having an issue similar to the one described here, except I am only seeing the following error:

ERROR: (gcloud.app.deploy) Your application does not satisfy all of the requirements for a runtime of type . Please correct the errors and try again.

I cannot find a log which details the missed requirements.

Google describes how to update an older (standard) app to the flexible environment here. They suggest running the aefix tool, but there are no instructions on how to run the tool. I ran go get google.golang.org/appengine/cmd/aefix to install it. I also looked through the source code and saw the following usage requirement: usage: aefix [-diff] [-r fixname,...] [-force fixname,...] [path ...]. However, the aefix command is not found. (I also tried running the compiled binary at $GOPATH/bin/aefix, but it just hangs).

答案1

得分: 3

很遗憾,那份文档已经过时了。我已经发送了一个修复它的拉取请求。

这些 API(大部分)在 App Engine 弹性环境中不起作用。它们只在标准环境中有用。

请参阅 cloud.google.com 上的文档,了解如何将应用从标准环境迁移到弹性环境。

英文:

Sadly, that documentation was out of date. I've sent a pull request to fix it.

Those APIs (mostly) do not work from App Engine flexible. They're only useful from Standard.

See the documentation on cloud.google.com on migrating an app from the standard environment to flexible.

huangapple
  • 本文由 发表于 2017年3月10日 14:18:14
  • 转载请务必保留本文链接:https://go.coder-hub.com/42711584.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定