How To Deploy A Modular (Multi-app) System To CloundFoundry

喜你入骨 提交于 2019-12-07 10:49:20

问题


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?


回答1:


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:

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.



来源:https://stackoverflow.com/questions/8684429/how-to-deploy-a-modular-multi-app-system-to-cloundfoundry

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!