简体   繁体   English

如何使用appengine gradle插件部署到自定义服务?

[英]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: 因此,如果您只想更改服务名称,则应该:

The order of the steps may matter for your case, you may want to reverse them. 步骤的顺序可能对您的情况很重要,您可能需要颠倒它们。

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

相关问题 如何使用Gradle运行/部署Google AppEngine托管的VM - How to run/deploy Google AppEngine Managed vms using Gradle 如何更改Eclipse SpringSource插件使用的Gradle版本? - How do I change the Gradle version the Eclipse SpringSource plugin uses? 如何在不同配置下使用gradle插件任务? - How do I use gradle plugin tasks with different configurations? 如何在Intellij中使用Gradle构建OpenFire插件? - How do I build an OpenFire plugin using Gradle in Intellij? 如何在AppEngine上限制appengine-mapreduce? - How do I throttle appengine-mapreduce on AppEngine? gradle-appengine-plugin仍在使用appengine-web.xml吗? - gradle-appengine-plugin still using appengine-web.xml? 如何从自己的AppEngine网络服务调用安全页面? - How do I call a secured page from my own AppEngine web-service? 我如何在teamcity上发布gradle来发布使用maven插件的gradle构建? - How can i do a gradle publish on teamcity to publish a gradle build that uses the maven plugin? 使用Putty,Gradle和Gradle Git插件时,如何修复“不兼容的JNA本机库”? - How do I fix “incompatible JNA native library” when using Putty, Gradle, and the Gradle Git plugin? 如何配置 VS Code 和 Gradle 以将生成的 Java 代码与 Gradle Protobuf 插件一起使用? - How do I configure VS Code and Gradle to use generated Java code with the Gradle Protobuf plugin?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM