Google App Engine 版本号?

发布于 2024-09-25 17:11:19 字数 56 浏览 0 评论 0原文

App Engine 版本号如何运作?它们只是整数吗?我可以使用浮标吗?我可以重复使用旧版本号吗?

How do App Engine version numbers work? Are they only integers? Can I use floats? Can I reuse old version numbers?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

醉态萌生 2024-10-02 17:11:20

要访问默认版本以外的应用版本,请在应用网址前添加 #.,如下所述:https://stackoverflow.com/a/8549546/129202
这对于在新版本上线之前对其进行测试非常有用。

如果应用程序版本为 2 并且您的应用程序 URL 为 appname.appspot.com
那么 URL 2.appname.appspot.com 将允许您访问版本 2
您的应用程序。

In order to access a version of your app other than the default one, add #. before your app url as explained here: https://stackoverflow.com/a/8549546/129202
This is useful for testing new versions before you make them live.

If the version of app is 2 and your app URL is appname.appspot.com
then URL 2.appname.appspot.com will give you access to version 2 of
your app.

仅一夜美梦 2024-10-02 17:11:20

您可以在推送新版本时增加它。请参阅下文以供参考。

当您构建新的主要版本时
已经运行的应用程序
在 App Engine 上,您可以上传新的
作为新版本发布。旧的
版本将继续为用户服务
直到您切换到新版本。
您可以在App上测试新版本
引擎虽然还是旧版本
正在运行。

编辑:没有删除我的答案,因为有一些很好的评论。

You can increment it when you pushing a new release. See below for reference.

When you build a new major release of
an application that is already running
on App Engine, you can upload the new
release as a new version. The old
version will continue to serve users
until you switch to the new version.
You can test the new version on App
Engine while the old version is still
running.

Edited: Didn't remove my answer because there're some good comments on it.

合约呢 2024-10-02 17:11:19

来自手册:

http://code.google.com/appengine /docs/python/config/appconfig.html#Required_Elements

版本说明符
应用程序代码。 App Engine 保留了
每份申请的副本
使用的版本。管理员可以
更改哪个主要版本
应用程序默认使用
管理控制台,可以测试
制作前的非默认版本
他们默认。版本说明符
可以包含字母、数字和
连字符。

应用程序的每个版本都保留
它自己的 app.yaml 副本。当
应用程序已上传,版本
app.yaml 文件中提到的是
uploaded 是获取的版本
由上传创建或替换。

From the manual:

http://code.google.com/appengine/docs/python/config/appconfig.html#Required_Elements

A version specifier for the
application code. App Engine retains a
copy of your application for each
version used. An administrator can
change which major version of the
application is default using
Administration Console, and can test
non-default versions before making
them default. The version specifier
can contain letters, digits, and
hyphens.

Each version of an application retains
its own copy of app.yaml. When an
application is uploaded, the version
mentioned in the app.yaml file being
uploaded is the version that gets
created or replaced by the upload.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文