google-app-engine - 我的 Java App Engine 托管虚拟机构建在 2015 年 4 月 14 日更新后未部署

标签 google-app-engine gcloud managed-vm

我的 java App Engine 托管 VM 构建不再使用 gcloud preview app deploy target/myapp-SNAPSHOT 部署 我明白了: 错误:在目录中找不到有效的 App Engine 配置文件

最佳答案

gcloud preview app deploy的用法在我们的 gcloud 2015.04.14 版本中发生了变化,您现在必须为您的模块指定 .yaml 文件以及 --project projectID .文档应该会很快更新。

对于 Java,我们发布了更新的 maven 插件。在您的 pom.xml 中,请添加以下内容:

<plugin> <groupId>com.google.appengine</groupId> <artifactId>gcloud-maven-plugin</artifactId> <version>0.9.57.v20150425</version> <configuration> <gcloud_project>XXX</gcloud_project> </configuration> </plugin>

mvn gcloud:deploy

更新到特定版本的SDK

您有某个版本的 SDK,但您想更改为特定的非最新版本,添加属性:

$ gcloud config set --scope=installation component_manager/fixed_sdk_version 0.9.55

然后运行:

$ gcloud components update

返回当前版本的SDK

$ gcloud config unset --scope=installation component_manager/fixed_sdk_version

然后运行:

$ gcloud components update

关于google-app-engine - 我的 Java App Engine 托管虚拟机构建在 2015 年 4 月 14 日更新后未部署,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29664732/

相关文章:

python - 如何在GAE上过滤图像?

websocket - Google Cloud 中的负载平衡 websocket 连接

google-app-engine - 由于SSL无法连接到Docker守护程序

python - Google App Engine 柔性环境中的 "Failed to import google/appengine/ext/deferred/handler.py"

node.js - gcloud 部署失败并出现 "Failed to enable APIs"错误

mysql - 允许 App Engine 标准环境连接到 Compute Engine Mysql

java - Android 上的 Google App Engine (GAE) 响应代码和 cookie

gcloud - 完全卸载 Google Cloud SDK Mac

node.js - Gcloud 上的 Meteor react

google-app-engine - 使用多个分支部署