无法在 Google App Engine 中将应用程序转换为模块

Can't convert app to module in Google App Engine

我前往 Google App Engine 管理控制台 将我的 app 转换为 模块。它指示我将一段代码复制并粘贴到我项目的 app.yaml 文件中,我照做了。但是当我尝试部署我的模块时,这个错误会打印在日志中:

Error 400: --- begin server output --- Your application currently has custom performance
settings that are not compatible with the Modules feature. You must either clear or
migrate these application-level settings before you can upload a non-default module. See
the Performance section of the Application Settings page of the Admin Console for more
information. --- end server output ---

我的申请中没有任何 "custom performance settings"。为什么我不能将我的 GAE 应用程序转换为模块?

在显示代码片段的下方,如果向下滚动页面,会出现一个确认按钮。如果您单击确认按钮,然后使用新的 app.yaml 文件再次部署,您应该能够在不收到错误消息的情况下进行部署。

对于遇到此问题的其他用户,完整的解决方法如下:

转到旧版 Google App Engine 管理控制台:

https://appengine.google.com/

然后转到您的应用程序 > 应用程序设置。

设置页面上应该有一个标题为 'Performance Settings Migration for Modules' 的部分。单击 'Migrate' 按钮。当它显示代码片段时,向下滚动页面并单击确认按钮。