问题描述
假设我上传了Google App Engine应用程序的另一个版本(例如,文件app.yaml中的版本:2)。版本1仍然是默认版本,版本2用于测试。然后我怎么运行它?
一旦你上传了一个版本
在Appengine上,您可以轻松地在它们之间切换。
假设您的应用程序名称为myapp,当前正在运行版本1.您还上传了一个名为2-testing的版本。您可以通过访问 myapp.appspot.com
来访问您的默认应用程序(使用版本1)你需要访问< version_name> -dot-myapp.appspot.com
。以下示例为:
1-dot-myapp.appspot.com
或 2-testing-dot-myapp.appspot.com
-dot -
相当于< version>。< appname>
,但允许您使用SSL正确地提供安全应用程序
您可以使用
编辑:这是官方讨论Appengine中的域名和子域名
Suppose I uploaded another version (say, "version: 2" in file app.yaml ) of my Google App Engine application. Version 1 is still the default and version 2 is for testing. How do I run it then?
Once you upload a version
on Appengine, you can switch between them easily.
Say that your app name is myapp, currently running version 1. You also have uploaded a version called 2-testing. Your default app (with version 1) can be reached by accessing myapp.appspot.com
If you wanted to access your versions explicitly, you joust need to access <version_name>-dot-myapp.appspot.com
. Following the example it would be:
1-dot-myapp.appspot.com
or 2-testing-dot-myapp.appspot.com
The -dot-
is equivalent to <version>.<appname>
but allows you to correctly serve a secure application with SSL
You can mark any version you want as default
(serving myapp.appspot.com
) using the admin console
edit: this is the official documentation page talking about domains and subdomains in Appengine
这篇关于谷歌应用程序引擎:如何运行不同的版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!