Sha256: 30811368c4f8569d8a1e1a0ff715d97394a020b94042dbcca5bf94e165d7b35c

Contents?: true

Size: 1.32 KB

Versions: 2

Compression:

Stored size: 1.32 KB

Contents

= 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

Copyright (c) 2010 Graham Batty. See LICENSE for details.

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rack-jetty-0.2.0 README.rdoc
rack-jetty-0.1.0 README.rdoc