如何在谷歌应用程序引擎中使用不同版本的自定义域名? [英] How to use custom domain name in google app engine with different versions?

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

问题描述

我使用谷歌应用程序引擎作为我的android和web应用程序的服务器,我使用Android Studio和使用Eclipse的Web应用程序开发了android应用程序。我通过android应用程序和第二版本在应用程序引擎第一版本点部署了两个版本Web应用程序 。我有我自己的域名,它指向默认版本的应用程序引擎。我的问题是如何指向第二版本的自定义域名。我读过谷歌开发人员博客,但我无法正确理解。请帮助。 解决方案

你真的不应该试图运行android和web应用程序作为同一GAE应用程序的两个版本 - 这不是版本的预期用途。您至少将流量路由到正确的应用程序,部署更新以及您已经观察到的映射到自定义域名时会遇到麻烦。



在GAE应用程序中运行这种单独的应用程序的正确方法是将它们分开放置 services / modules 。每个服务可以有多个版本。每个服务(实际上每个服务的默认版本)都可以根据需要映射到自定义(子)域。



将当前应用转换为多服务应用程序:只需在您的应用程序目录的两个并排子目录中复制代码的两个版本,并更新配置文件应覆盖超过95%的工作。


I am using google app engine as a server for my android and web application,I developed android app using Android Studio and Web application using Eclipse.I deployed two version in app engine 1st version points by android application and 2nd version points by Web application . I have my own domain name which points default version of app engine .My question is how to point 2nd version by custom domain name. I read google developer blog but i can't understand properly.Please help.

解决方案

You really shouldn't attempt to run the android and the web "applications" as 2 versions of the same GAE application - that's not the intended use for versions. You'll run into trouble at least with routing traffic to the correct "application", with deploying updates and, as you already observed, with mapping to custom domains.

The proper way to run such separate "applications" as part of one GAE application is to make them separate services/modules of that GAE app. Each service can have multiple versions. Each service (actually each service's default version) can be mapped to a custom (sub)domain as needed.

It should not be very complicated to convert your current app to a multi-service app: just copying the 2 versions of the code in 2 side-by-side subdirectories of your app directory and updating the configuration files should cover over 95% of the job.

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

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