当我部署项目时出现此错误
INVALID_ARGUMENT:您的应用的版本不能超过 15 个。在尝试创建新版本之前,请删除其中一个现有版本。
我也去了谷歌云上的版本并尝试手动删除它,但它说你不能删除具有流量共享的版本。
请帮忙,非常感谢任何建议
最佳答案
您需要保留一个版本(也许是最新的?),然后使用 "Split Traffic" link here 将所有流量迁移到该版本, 远离您要删除的所有其他版本。
然后您将能够选择和删除这些版本,因为它们不再处理流量。
最后部署新版本(事实上,只要删除了足够多的版本以不再看到该错误,您就可以这样做),如果需要,将流量迁移到它。
另见 gcloud app deploy在部署时与版本控制和流量迁移相关的选项可以帮助您防止将来出现这种情况:
--promote
Promote the deployed version to receive all traffic.
True by default. To change the default behavior for your current environment, run:
$ gcloud config set app/promote_by_default false
Overrides the default
promote_by_default
property value for this command invocation. Use--no-promote
to disable.
--stop-previous-version
Stop the previously running version when deploying a new version that receives all traffic. Overrides the default
stop_previous_version
property value for this command invocation. Use--no-stop-previous-version
to disable.
--version
=VERSION
,-v
VERSION
The version of the app that will be created or replaced by this deployment. If you do not specify a version, one will be generated for you.
关于google-app-engine - 如何在谷歌云上删除应用程序中的多个版本?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42429159/