简体   繁体   English

在heroku或cloudfoundry上进行多战部署?

[英]Multi war deployment on heroku or cloudfoundry?

Using the following java buildpack how would I be able to deploy a multi-war application? 使用以下java buildpack ,我将如何部署多战应用程序?

What I did was zipped up the tomcat root dir, contains the common,conf, shared and webapps directories, and named the zip a war and then deploy using that "war" which contains everything. 我所做的是压缩了tomcat的根目录,包含common,conf,shared和webapps目录,并将zip命名为war,然后使用包含所有内容的“ war”进行部署。 But it seems to fail at staging. 但它似乎无法分期进行。

I don't believe that this is possible with the Java Build pack that you listed. 我认为您列出的Java Build包不可能做到这一点。 It's designed to deploy one WAR file as one application on CF. 它旨在将一个 WAR文件作为一个应用程序部署在CF上。 If you have multiple applications, you would simply push multiple separate application to CF. 如果您有多个应用程序,则只需将多个单独的应用程序推送到CF。

If you insist on pushing multiple WAR files into a single CF application, you'll need to customize or create your own build pack. 如果您坚持将多个WAR文件推送到单个CF应用程序中,则需要自定义或创建自己的构建包。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM