Deploying With Ktor: How To Set AppEngine Version?

让人想犯罪 __ 提交于 2020-01-02 19:32:22

问题


Issue

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.

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.

Attempted Solutions

Looked for way to define AppEngine version in the following files:

  1. web.xml
  2. application.conf

Setting id:

ktor {    
    application {
        modules = [InitializationKt.main]
        id = "coinverse-price-staging"
    }
}
  1. Searching for way to define in AppEngine deploy command.


回答1:


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

build.gradle

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


来源:https://stackoverflow.com/questions/52910776/deploying-with-ktor-how-to-set-appengine-version

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!