Sometimes you meet that kind of people that complain about the lack of any feature in an open source project but they don't do anything to solve the problem. Last releases of Trinidad try the solve one of that complaints, so that people have one excuse less to use it :)
The goal of the project was pretty simple, allow to run a Rails application under Apache Tomcat without generating a war file in a more familiar "rails way". But that guy complained because he wanted to run several applications into the same instance of Tomcat, and actually he was partially right, Tomcat is a powerful application server and it can run several applications at once, thus, why don't allow to Trinidad to run several Rails applications?
After a few changes in its architecture, Trinidad allows to run as many Rails applications as Tomcat can support into the same instance. We just need add the application's context and their system path to the Trinidad's configuration file and run Trinidad with the option to read that file.
For instance, if we want to load three applications we had to add this nodes to the yaml file:
---
:web_apps:
:default: # context path is '/'
:web_app_dir: 'rails_apps/mock'
:mock1: # context path is '/mock1'
:web_app_dir: 'rails_apps/mock1'
:mock2:
:web_app_dir: 'rails_apps/mock2'
:context_path: '/mock2'
and run Trinidad with the configuration option:
$ jruby -S trinidad --config
That's it. Hope it will useful. Btw all the configuration options can be found in the Trinidad's wiki.
