如何在谷歌应用程序引擎中使用不同版本的自定义域名? [英] How to use custom domain name in google app engine with different versions?
问题描述
你真的不应该试图运行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屋!