I'm looking to deploy multiple JRuby/Rails applications and am in the process of choosing a production environment (Tomcat/Warbler, Trinidad, TorqueBox). I would like to choose Trinidad, because the deployment is similar to how I would manage a traditional MRI app with Capistrano.
Currently we have two Rails applications and a single sign on solution using Central Authentication Service (CAS), which is built in Java. We'd like to deploy each to their own subdomain, for example
security.mydomain.com,
app1.mydomain.com and
app2.mydomain.com. My questions are as follows:
Since Trinidad is underpinned by Tomcat, would it be possible to deploy the CAS war file using Trinidad?
Would we need to use an nginx proxy to host multiple pass requests to Trinidad/Tomcat?
Are there any examples where someone has deployed multiple applications, each accessible by their own domain?
If its possible, I'd be happy to document the setup process so that it could be shared with the community.