[英]how do I deploy to a custom service with the appengine gradle plugin?
I have seen all the parameters from the documentation . 我已经从文档中看到了所有参数。 But none of them allow to override the
service
parameter from the generated yaml. 但是它们都不允许覆盖生成的Yaml中的
service
参数。
I tried using deployables = app.yaml
with the app.yaml below but it gives me a 500 error: 我尝试在下面的app.yaml中使用
deployables = app.yaml
,但它给了我500错误:
runtime: java7
threadsafe: True
api_version: '1.0'
service: backend
handlers:
- url: /.*
script: unused
login: optional
secure: optional
skip_files: app.yaml
Any idea what I'm doing wrong ? 知道我在做什么错吗?
The services
parameter is what determines the service's name, meaning the service the deployment is directed to. services
参数是确定服务名称的元素,这意味着部署将定向到该服务。
So there is no way to overwrite the services
parameter because as soon as you change it you're simply deploying to a different service. 因此,没有方法可以覆盖
services
参数,因为更改后,您只是在将其部署到其他服务。
So if you want to just change a service's name you should: 因此,如果您只想更改服务名称,则应该:
delete the old service using gcloud app services delete
: 使用
gcloud app services delete
旧服务gcloud app services delete
:
$ gcloud app services delete old_service_name
The order of the steps may matter for your case, you may want to reverse them. 步骤的顺序可能对您的情况很重要,您可能需要颠倒它们。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.