简体   繁体   English

如何在具有不同版本的Google App Engine中使用自定义域名?

[英]How to use custom domain name in google app engine with different versions?

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 . 我将Google App Engine用作我的android和Web应用程序的服务器,我使用Eclipse开发了使用Android Studio和Web应用程序的android应用程序。我在App Engine中部署了两个版本,第一个是Android应用程序,第二个是Web应用程序。 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. 我阅读了Google开发人员博客,但我无法正确理解。请提供帮助。

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. 您确实不应该尝试将android和网络“应用程序”作为同一GAE应用程序的2个版本运行-这不是该版本的预期用途。 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. 作为一个GAE应用程序的一部分运行此类单独的“应用程序”的正确方法是使它们成为该GAE应用程序的单独服务/模块 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. 将您当前的应用转换为多服务应用应该不是很复杂:只需将两个版本的代码复制到应用目录的2个并排子目录中,并更新配置文件,即可覆盖95%以上的工作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM