简体   繁体   English

将 EAR 应用程序从 AppEngine 迁移到 Google Cloud SDK

[英]Migrating an EAR application from AppEngine to Google Cloud SDK

Since App Engine reached the end of life last August on the 30th, it's not possible anymore to deploy updates to the same application using the appengine ( appcfg ) command line.自去年 8 月 30 日 App Engine 生命周期结束以来,不再可能使用 appengine ( appcfg ) 命令行将更新部署到同一应用程序。

I was using the appengine maven plugin which in turn was using appcfg to deploy my application.我使用的是 appengine maven 插件,它又使用 appcfg 来部署我的应用程序。

I'm looking on how to migrate my application to Google Cloud SDK now but between the limitations I saw that Google Cloud SDK does not support EAR applications to be deployed.我现在正在研究如何将我的应用程序迁移到 Google Cloud SDK,但在我看到 Google Cloud SDK 不支持部署 EAR 应用程序的限制之间。

Surprize surprize my applications does have an EAR structure.令我惊讶的是,我的应用程序确实具有 EAR 结构。

Is there a workaround for this or should I completely change the structure of my application?是否有解决方法,或者我应该完全改变我的应用程序的结构?

You don't have to change your application structure at all.您根本不必更改应用程序结构。 It's only the deployment that it slightly altered.它只是稍微改变了部署。

Before, you used to create war artifacts and package them into a deployable ear.以前,您曾经创建战争工件并将它们 package 放入可部署的耳朵中。

Now you keep creating the same war artifacts but you must not package them into an ear.现在你一直在创造同样的战争文物,但你不能把它们 package 放进耳朵里。 Instead, you deploy them all together using the gcloud command:相反,您可以使用 gcloud 命令将它们全部部署在一起:

gcloud app deploy./path_module1/WEB-INF/appengine-web.xml./path_module2/WEB-INF/appengine-web.xml gcloud app deploy./path_module1/WEB-INF/appengine-web.xml./path_module2/WEB-INF/appengine-web.xml

path_moduleX are paths to the exploded artifacts (not path to your source code, of course) path_moduleX 是分解工件的路径(当然不是源代码的路径)

as explained here https://cloud.google.com/appengine/docs/standard/java/configuration-files如此处所述https://cloud.google.com/appengine/docs/standard/java/configuration-files

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 将 Java Google AppEngine 本地标准服务器连接到云数据库 | appengine-api-1.0-sdk-1.9.84.jar | IntelliJ 和云代码 - Connect Java Google AppEngine Local Standard Server to Cloud DB | appengine-api-1.0-sdk-1.9.84.jar | IntelliJ & Cloud Code 错误:7 PERMISSION_DENIED:您的应用程序已使用来自 Google Cloud SDK 的最终用户凭据进行了身份验证 - Error: 7 PERMISSION_DENIED: Your application has authenticated using end user credentials from the Google Cloud SDK 谷歌云 SDK 文档 - Google Cloud SDK documentation PERMISSION_DENIED:您的应用程序已使用来自 Google Dialogflow 中的 Google Cloud SDK 的最终用户凭据进行了身份验证 - PERMISSION_DENIED: Your application has authenticated using end user credentials from the Google Cloud SDK in Google Dialogflow 如何在 Google Cloud 的 SDK 中记录应用程序使用的所有权限 - How to log all permissions an application is using in Google Cloud's SDK 谷歌云 SDk:找不到 Python - Google Cloud SDk: Python was not found Google AppEngine 部署错误(云错误报告) - Google AppEngine Deploy Error (cloud-error-reporting) .NET 中的 Google.Cloud.AppEngine.V1 客户端库和流量拆分 - Google.Cloud.AppEngine.V1 client libraries and traffic splitting in .NET 如何使用 Firestore 删除现有 Google Cloud 项目中的 AppEngine 默认服务 - How to delete AppEngine default service in the existing Google Cloud project with Firestore 如何将 cloud.google.com/go/datastore 与 AppEngine 一起使用? - How to use cloud.google.com/go/datastore with AppEngine?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM