本文介绍了使用Ktor部署:如何设置AppEngine版本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我遵循了这个简洁明了的 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:

  1. web.xml
  2. application.conf
  1. web.xml
  2. application.conf

设置 id:

ktor {    
    application {
        modules = [InitializationKt.main]
        id = "coinverse-price-staging"
    }
}
  1. 搜索在AppEngine部署命令中定义的方法.

推荐答案

感谢您@marco发现了!

Thank you to @marco for uncovering the solution to this!

build.gradle

appengine {
    deploy {
        version = '1-2-0'
    }
}

这篇关于使用Ktor部署:如何设置AppEngine版本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-22 11:48