简体   繁体   English

指定具有Cloud Endpoints的AppEngine服务

[英]Specifying an AppEngine service with Cloud Endpoints

I have launched my Endpoints service and deployed my app onto AppEngine. 我已经启动了Endpoints服务,并将我的应用程序部署到AppEngine上。 If I do not specify a service in my app.yaml file, the AppEngine uses the default service. 如果我未在app.yaml文件中指定服务,则AppEngine使用默认服务。 I am able to make a request using Postman and get a successful response. 我可以使用Postman进行请求并获得成功的响应。

However, if I specify my own AppEngine service in my app.yaml file like below, I get a "Not found" error. 但是,如果我在如下的app.yaml文件中指定自己的AppEngine服务,则会收到“未找到”错误。

runtime: python27
threadsafe: true
api_version: 1
basic_scaling:
    max_instances: 2
service: mycustomservice

What am I missing? 我想念什么? How can I get Endpoints/AppEngine to see the mycustomservice service? 如何获取Endpoints / AppEngine来查看mycustomservice服务?

In your Cloud Endpoints config "openapi-appengine.yaml" set "host" to the path of the non default appengine service you created 在您的Cloud Endpoints配置“ openapi-appengine.yaml”中,将“主机”设置为您创建的非默认appengine服务的路径

default: [PROJECT_ID].appspot.com 默认值: [PROJECT_ID].appspot.com

additional service [SERVICE]-dot-[PROJECT_ID].appspot.com 附加服务[SERVICE]-dot-[PROJECT_ID].appspot.com

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

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