Project

rack-jetty

0.01
No commit activity in last 3 years
No release in over 3 years
Allows you to use Jetty as a Rack adapter in JRuby. Compatible with rackup and rails' Rack support.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 1.2.9

Runtime

>= 1.0.0
 Project Readme

rack-jetty¶ ↑

Provides a nice simple Rack Adapter for Jetty under JRuby. Once installed, you can use rackup to start it with: jruby -S rackup -s Jetty myapp.ru # the -S tells it to search your bin paths for rackup Or with Rails:

jruby script/server Jetty # no -S needed since it’s a relative path The code for this is intended to be very easy to understand and is entirely done in Ruby, without the help of jruby-rack, so it should be pretty hackable.

Note that if you want to run this as a real server (or for benchmarking), you’ll probably want to run jruby with –server so it actually does JIT optimization and the like.

Inspiration credit for this project goes out to Vladimir Dobriakov of Vodafone who wrote jetty-rackup, which wasn’t quite what I needed but gave me a hell of a starting point for making this go. Thanks, Vladimir!

Note on Patches/Pull Requests¶ ↑

  • Fork the project.

  • Make your feature addition or bug fix.

  • Add tests for it. This is important so I don’t break it in a future version unintentionally.

  • Commit, do not mess with rakefile, version, or history. (if you want to have your own version, that is fine but bump version in a commit by itself I can ignore when I pull)

  • Send me a pull request. Bonus points for topic branches.

Copyright © 2010 Graham Batty. See LICENSE for details.