浙江省高等学校教师教育理论培训

微信搜索“毛凌志岗前心得”小程序

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

Trinidad

Trinidad allows you to run any Rack based application within an embedded Apache Tomcat container.

Apache Tomcat is a lightweight java web server developed and released under the Apache Software Foundation.

installing

jgem install trinidad

usage

cd myrailsapp
jruby -S trinidad

configuration

Trinidad accepts some configuration arguments from the command line, you can find the supported options in the readme page.

Further advanced options can also be found in the project's wiki.

extensions

Trinidad is modularized. You just need the core of the project to run any application but you can also find some advanced features available as independent gems, so the core remains lightweight until you need them.

This is the list of the current available extensions:

Database connection pooling
Enables database connection pooling through Tomcat and JNDI.
Daemon
Enables to run Trinidad as a daemon. Available for unix, solaris, and macos x systems.
Hot deploy
Allows to do hot deployments monitorizing a file, ala Passenger.
Sandbox
Management console and REST api

You can find further information on how to write your own extension in its wiki page.

getting the source

from github: http://github.com/calavera/trinidad

git clone git://github.com/calavera/trinidad.git
posted on 2012-03-15 01:09  lexus  阅读(402)  评论(0编辑  收藏  举报