谷歌应用程序引擎:如何运行不同的版本 [英] google app engine: how to run different version

查看:89
本文介绍了谷歌应用程序引擎:如何运行不同的版本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

假设我上传了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正确地提供安全应用程序

您可以使用> default =https://developers.google.com/appengine/docs/adminconsole/ =noreferrer>管理控制台



编辑:这是官方文档页面讨论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

这篇关于谷歌应用程序引擎:如何运行不同的版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆