JRuby and Joyent Accelerators
Posted on May 27, 2007
I don’t pimp Joyent products much, but I’ll do so for this one. In our new Joyent Accelerators JRuby is pre-installed and ready to run out of the box. Joyent is a key player in the Ruby on Rails world, hosting some of the biggest (Twitter) and best (Ebible) Rails sites on the net. I’m glad to say that we’re the first hosting company to get behind and seriously advocate JRuby for production use.
Getting started is easy. In our Accelerators you’ll JRuby 1.0.0RC2 in /opt/jruby. JRuby comes complete with the jruby interpreter which is used just like ruby, including friends like gem, jirb, and more. Lets take a look at how to get started:
[z010101CA:~] admin$ export PATH=/opt/jruby/bin:$PATH [z010101CA:~] admin$ jirb irb(main):001:0> string = 'JRuby Rules\!' => "JRuby Rules\\!" irb(main):002:0> print string JRuby Rules\!=> nil irb(main):003:0> string.upcase => "JRUBY RULES\\!" irb(main):004:0> quit
Its really just that simple. Want to do some JRuby on Rails work?
Its that simple. No tricks, no gimmicks. Just start playing.
In particular, we’re excited about the plethora of mature Java features that can be brought into the Rails world, including JDBC and real threading.