如何将模块化(多应用程序)系统部署到CloundFoundry [英] How To Deploy A Modular (Multi-app) System To CloundFoundry

查看:96
本文介绍了如何将模块化(多应用程序)系统部署到CloundFoundry的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想将模块化grails应用程序部署到cloudfoundry。有一个面向用户的应用程序应该正常安装在ROOT中,但是有一个单独的管理系统应该在/ admin上部署到相同的实例。

I'd like to deploy a modular grails app to cloudfoundry. There's a user facing app that should get installed at ROOT as normal, but then there's a separate administration system that should get deployed to the same instance(s) at /admin.

但是看起来您只能将每个实例的一个应用程序部署到ROOT?

But it looks like you can only deploy 1 app per instance to ROOT?

推荐答案

是的。

我的理解是没有将多个应用程序部署到同一个应用程序服务器实例的概念。在大多数情况下,这是确定的。通过我们的BI应用程序,我们通常会将其部署到与运行其他应用程序相同的tomcat实例。但是,我们分开部署它。它可以访问相同的数据库,并且没有任何功能可以阻止添加应用程序或其他集成功能之间的单一登录。

My understanding is that there's no concept of deploying multiple applications to the same application server instance. In most cases this is OK though. With our BI application we would normally deploy it to the same tomcat instance as another application is running on. But instead we deploy it separately. It can access the same databases, and nothing is preventing Single Sign On between the applications or other integration features from being added.

编辑:application1大概工作正常,并使用一些数据库。如果您希望application2访问相同的数据,您可以将其绑定:

EDIT: application1 presumably is working well and using some database. If you want application2 to access the same data you can just bind it:

vmc bind-service my-database-service application2

当然,您可以将两个应用程序合并在一起。这可能会带来理想的结果......但这可能是一个很大的努力。

Alternatively, of course, you could merge your two applications together. That will probably give the desired result... but it's probably a big effort.

这篇关于如何将模块化(多应用程序)系统部署到CloundFoundry的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆