我想使用gcloud CLI部署spring boot jar。当我运行gcloud app deploy
时,它不会上传jar文件:
╔════════════════════════════════════════════════════════════╗
╠═ Uploading 0 files to Google Cloud Storage ═╣
╚════════════════════════════════════════════════════════════╝
File upload done.
当我运行gradle deploy命令时,它还告诉我它上传了一个文件。我认为这是缺少的jar文件。
#============================================================#
#= Uploading 1 file to Google Cloud Storage =#
#============================================================#
File upload done.
当我查看云构建中发生了什么时,我看到它正在获取一个manifest.json,看起来像这样:
{
"app.yaml": {
"sourceUrl": "https://storage.googleapis.com/staging.some- project.appspot.com/some-hash",
"sha1Sum": "some-hash"
},
"source-context.json": {
"sourceUrl": "https://storage.googleapis.com/staging.some-project.appspot.com/some-hash",
"sha1Sum": "some-hash"
}
}
当我查看使用manifest插件部署manifest.json的外观时,我发现它包含对jar文件的引用,如:
"my-project-0.0.1-SNAPSHOT.jar": {
"sourceUrl": "https://storage.googleapis.com/staging.some-project.appspot.com/some-hash",
"sha1Sum": "some-hash"
}
我想配置什么?