[英]How do I run Google's aefix tool when upgrading a Google App Engine app to the flexible environment?
I am trying to upgrade a Google App Engine app from the standard environment to the flexible environment. 我正在尝试将Google App Engine应用程序从标准环境升级到灵活环境。 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 [go]. 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 . Google 在此处介绍了如何将较旧的(标准)应用程序更新为灵活的环境。 They suggest running the
aefix
tool, but there are no instructions on how to run the tool. 他们建议运行
aefix
工具,但没有有关如何运行该工具的说明。 I ran go get google.golang.org/appengine/cmd/aefix
to install it. 我跑去
go get google.golang.org/appengine/cmd/aefix
进行安装。 I also looked through the source code and saw the following usage requirement: usage: aefix [-diff] [-r fixname,...] [-force fixname,...] [path ...]
. 我还浏览了源代码 ,看到了以下用法要求:
usage: aefix [-diff] [-r fixname,...] [-force fixname,...] [path ...]
。 However, the aefix
command is not found. 但是,
aefix
命令。 (I also tried running the compiled binary at $GOPATH/bin/aefix
, but it just hangs). (我也尝试在
$GOPATH/bin/aefix
运行编译的二进制文件,但它只是挂起了)。
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. 这些API(大多数)在App Engine flexible中不起作用。 They're only useful from Standard.
它们仅在Standard中有用。
See the documentation on cloud.google.com on migrating an app from the standard environment to flexible. 有关将应用程序从标准环境迁移到弹性环境的信息,请参阅cloud.google.com上的文档 。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.