Search code examples
javaruby-on-railsrubyjrubyjrubyonrails

Compile all .rb files of a Ruby on Rails app to .class using JRuby, pack it into a .war and deploy into a Java appserver


Is it possible to compile all .rb source files files (including the configuration source file files) of Ruby on Rails to .class files using JRuby, pack it into a .war file and deploy to JBoss or another Java appserver?


Solution

  • Check out warbler for this purpose.

    From the main page:

    Warbler is a gem that makes a .war file out of a Rails, Merb, or Rack-based application. The intent is to provide a minimal, flexible, ruby-like way to bundle all your application files for deployment to a Java application server.