Trinidad is a library that allows to run Rails and Rack compatible
applications within a single Tomcat container without use war files.
I don’t usually write this kind of mails but someone in the #jruby
channel
told me that he didn’t use my pet project because he didn’t want to run
one
instance by each application. I did some changes and now it also allows
to
run as many Rails applications as you want, or Tomcat supported :), into
the
same container, so one excuse less :).
The application paths have to be specified into a yaml file, like in the
next example, and the server have to be ran with the option --config:
:environment: ‘production’ # global environment for
each application
: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'
jruby -S trinidad --config path_to_the_config_file.yml
You can find further info here:
http://calavera.github.com/trinidad/
http://wiki.github.com/calavera/trinidad/advanced-configuration
http://github.com/calavera/trinidad/blob/master/README.rdoc
Any feedback, comment or opened issue will be really appreciated.
Cheers