Search code examples
ruby-on-railsjruby

Generate WAR file for Ruby on Rails using JRuby


I am new to Ruby on rails.I need to generate War file using Jruby for an ROR application and deploy it on Tomcat.I need to implement this on windows environment. I know it might a basic question ,But any resources on how to do it would be really helpful.


Solution

    • gem install warbler # ----pre if you want to use JRuby 9K (not 1.7)--

    UPDATE: Warbler 2.0 (JRuby 9K) has been released, for JRuby 1.7 use 1.x

    • (optional) warble config # to tune the .war generation at config/warble.rb

    • jruby -S warble # generates a .war file for you that you can deploy