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

拥有回忆 提交于 2019-12-02 11:51:00

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.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!