如何将模块化(多应用程序)系统部署到 CloundFoundry
我想将模块化 grails 应用程序部署到 cloudfoundry。有一个面向用户的应用程序应该正常安装在 ROOT 处,但是还有一个单独的管理系统应该部署到 /admin 处的相同实例。
但看起来每个实例只能部署 1 个应用程序到 ROOT?
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.
But it looks like you can only deploy 1 app per instance to ROOT?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
是的。
我的理解是,不存在将多个应用程序部署到同一个应用程序服务器实例的概念。但在大多数情况下这是可以的。对于我们的 BI 应用程序,我们通常会将其部署到与另一个应用程序运行相同的 tomcat 实例。但我们单独部署它。它可以访问相同的数据库,并且没有什么可以阻止应用程序之间的单点登录或添加其他集成功能。
编辑:application1大概运行良好并使用一些数据库。如果您希望 application2 访问相同的数据,您可以将其绑定:
当然,您也可以将两个应用程序合并在一起。这可能会产生预期的结果......但这可能需要付出很大的努力。
Yes.
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.
EDIT: application1 presumably is working well and using some database. If you want application2 to access the same data you can just bind it:
Alternatively, of course, you could merge your two applications together. That will probably give the desired result... but it's probably a big effort.