-
Notifications
You must be signed in to change notification settings - Fork 163
Warbler and 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.
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.
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.
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)