Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
You can use JRuby with JRuby on RailsRuby on Rails. JRuby gives Rails the power and functionality of the Java Platform, providing it with:
- Excellent garbage collection for endless uptimes
- Hotspot profiled dynamic optimizations for great performance
- Access to the Java ecosphere for additional technology options
- Deployment to Java application servers for ubiquity
Table of Contents
Get started with these tutorials:
- Using Puma, Rails 4 and JRuby on Heroku - Simple well explained tutorial (Up to date-ish. Written on December 4, 2014).
Rails3 application with Jruby
- Outdated(JRuby Version 1.3.1):
Deploying a Rails application in Tomcat with JRuby: A concise tutorial
- Empty Wiki:
JRuby on Rails with Spring - zero to
.warfile with Spring and Maven.
- Outdated (Page says 'This book is obsolete')
"Porting" the Depot Application To Jruby, Parts 1 and 2: These tutorials show you how to make the Depot application from "Agile Web Development with Rails, Third Edition" work with Jruby.
This page is outdated, more up-to-date info on our Servers page
If you don't use a traditional Ruby application server like Mongrel, you can use a Java application server. To deploy to a Java app server, you can use the tool Warbler to bundle your Rails application in a Java Web Application Archive (.war file). (Warbler is a minimal, flexible, Ruby-like way to create a .war file.) Once you have a .war file, you can deploy to any Java app server using its war deployment mechanism.
Some links to information on various Java appllication servers:
The Glassfish gem by Vivek Pandey enables you to easily deploy a JRuby on Rails application to the Glassfish v3 modularized Java application server. The Glassfish gem wraps the essential technologies in 3 MB and allows you to run your application using a traditional approach, as if you were running Mongrel, Rack, and so on.
- PUMA (works with MRI as well as JRuby)
- Trinidad (based on Tomcat)
- TorqueBox (based on JBoss)
- Mongrel Web Server entry on Wikipedia
- Swiftiply with Mongrel
- WEBrick website
- WEBrick entry on Wikipedia
- Gnome's Guide to WEBrick