问题
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:
- web.xml
- application.conf
Setting id:
ktor {
application {
modules = [InitializationKt.main]
id = "coinverse-price-staging"
}
}
- 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