Skip to content
This repository has been archived by the owner on Dec 27, 2022. It is now read-only.

Warbler and JRuby

lusis edited this page Feb 9, 2011 · 2 revisions

JRuby

Noah currently does not run on JRuby 1.6RC1. I tried both 1.9 and 1.8 mode. I'll be opening a ticket

JRuby 1.5.6 works fine.

Warbler

I've been successful in building a war file of Noah and deploying both to Tomcat and Jetty. I've also built a self-executing war file with the embedded winstone server. You can grab it from the downloads button.

Don't use the gemjar feature of warbler. It breaks on File.dirname in paths. Ticket is opened.

Also note that all documentation references Noah as being served from the root. If you deploy the war file, it will normally serve from /noah so update all paths accordingly. Here are the notes from the README file about war file usage:

Please note that you'll need to set the environment variable REDIS_URL if you want to point to any Redis server OTHER than localhost:6379/0.

Using winstone

export REDIS_URL=redis://hostname:port/dbnumber
java -server [-d64] -jar noah.war [-httpPort=<portnumber>] [--prefix=<different context root>]

Winstone doesn't do ANY error checking on options passed to it. Please check carefully that you're using --var=value after the war file name.

Deploying to a container

Just copy noah.war to your webapps folder. It will be served from /noah unless you rename it to ROOT.war or create a context file (under Jetty)

Clone this wiki locally