问题描述
我遵循了这个简洁明了的 Ktor教程.现在,我已经成功部署到AppEngine ,我想手动设置将来部署的版本.
I've followed this clear and concise Ktor tutorial. Now that I have successfully deployed to AppEngine I would like to manually set the version of future deploys.
appengine-web.xml 的Google文档文件表示<version>标签可用于此目的,但还指出标签未用于基于Cloud SDK的工具.我尝试设置标签,并确认在部署到AppEngine时未使用该值.
Google's documentation of the appengine-web.xml file indicates the <version> tag can be utilized for this purpose, but also states that the <version> tag is unused for Cloud SDK based tooling. I attempted to set the tag and confirmed this value is not being used when deployed to AppEngine.
在以下文件中寻找定义AppEngine版本的方法:
Looked for way to define AppEngine version in the following files:
- web.xml
- application.conf
- web.xml
- application.conf
设置 id:
ktor { application { modules = [InitializationKt.main] id = "coinverse-price-staging" } }
- 搜索在AppEngine部署命令中定义的方法.
推荐答案
感谢您@marco发现了!
Thank you to @marco for uncovering the solution to this!
build.gradle
appengine { deploy { version = '1-2-0' } }
这篇关于使用Ktor部署:如何设置AppEngine版本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!