Deploy Google Endpoint in a custom Domain

岁酱吖の 提交于 2019-11-30 17:35:33

问题


Is there any problems using Google Cloud Endpoints with custom domain?

I was using it for some weeks then, after a deploy it stopped to work. I look here and I found this question that says it is not allowed yet.

But it was working for me on http://www.customdomain.com/_ah/api/app-id/v1...


回答1:


If you're using App Engine's built-in support for custom domains as outlined here, it's not expected to work. You can follow this feature request to keep up-to-date on the feature's progress.




回答2:


Now,Google CloudEndpoints 2.0 support it

Migrating to version 2.0:

  • Update your dependency to use the new artifact. In Maven, this looks something like below:

    com.google.endpoints endpoints-framework 2.0.0-beta.8

  • Remove the legacy dependency, which is the appengine-endpoints artifact.

  • Update the API entry point in your project web.xml file:

    • Rename all occurrences of SystemServiceServlet to EndpointsServlet.
    • Replace all occurences of the path /_ah/spi/* to the new required path /_ah/api/*

See:

https://cloud.google.com/appengine/docs/java/endpoints/migrating

https://code.google.com/p/googleappengine/issues/detail?id=9384



来源:https://stackoverflow.com/questions/18607664/deploy-google-endpoint-in-a-custom-domain

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