英文:
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.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论