Tuesday, February 21, 2012

New BitNami JRuby 1.6.6 all-in-one installer and VMs released

We are happy to announce a new version of BitNami JRubyStack which includes the latest version of JRuby 1.6.6 and, for the first time, it is also available for 64 bit machines. BitNami JRubyStack is a ready to run environment of JRuby, MySQL, Tomcat and a few other components. It is available as native installers for Windows, Mac OS X and Linux, Virtual Machines and Amazon Machine Images.

Thanks to JRuby and the Warbler gem you can easily make a .war file from your rails projects that can be deployed with Tomcat. The rest of this post shows you how easy it is to do so. It assumes you have installed BitNami JRubyStack previously:

Here are the steps:

1 . Open a rubyconsole and move to your Rails application directory:

    cd jrubystack

2. Use the Warbler gem to generate a config/warble.rb file:

    jruby -S warble config

3 . Generate the .war file and copy it to the Tomcat's webapps directory. 

     On Unix systems:
    jruby -S warble war
    cp jrubystack.war ../../apache-tomcat/webapps

      On Windows:
    jruby -S warble war
    copy jrubystack.war c:\Program Files\BitNami JRubyStack\apache-tomcat\webapps
Once Tomcat is started you can point your browser to http://localhost:8080/jrubystack

It's that easy!

No comments:

Post a Comment