简体   繁体   English

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

[英]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.

相关问题 您如何在同一个 Google App Engine 项目中同时运行灵活环境和标准环境? - How do you run both Flexible Environment and Standard Environment in the same Google App Engine project? 如何在Google App Engine PHP灵活环境中为GD启用FreeType支持? - How do I enable FreeType support for GD in Google App Engine PHP flexible environment? 我如何知道 Google App Engine 实例是标准的还是灵活的? - How do I know if an Google App Engine instance is Standard or Flexible? 是否可以在Google App Engine ** Flexible **环境中运行Windows可执行文件? - Is it possible to run a Windows executable in Google App Engine **Flexible** environment? 部署到谷歌应用引擎柔性环境时出现gcloud错误 - gcloud error when deploying to google app engine flexible environment Google App Engine标准版或灵活环境? - Google App Engine Standard or Flexible environment? 在Google App Engine灵活环境中启用CORS - Enabling CORS in Google App Engine Flexible Environment Google App Engine灵活 - 环境变量 - Google App Engine Flexible - environment variables Google Cloud App Engine:如何在灵活的环境中提供https - Google Cloud App Engine: How to serve https in a Flexible environment 我在哪里可以找到 Google App Engine 柔性环境的源代码? - Where will I find the source code for Google App Engine Flexible environment?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM