Ruby Weekly is a weekly newsletter covering the latest Ruby and Rails news.

How to Easily Deploy a Self-Contained Rails App On A Tomcat Server

By Peter Cooper / May 14, 2007

Victor Igumnov has put together a simple walkthrough of how to package a Rails application into a single WAR file to run on a Tomcat server using JRuby, a pure Ruby PostgreSQL library (no ActiveRecord-JDBC needed!), and GoldSpike (JRuby addon that provides rake tasks to make WAR files). This is useful knowledge for anyone who might be forced into deploying Rails apps in an enterprise type system where Tomcat may be the only viable deployment option.

Comments

  1. Garth says:

    Sounds like a hack to me, a great hack, but still a hack. I'm still not onto the buzz of JRuby and getting Rails running with it. Maybe I'm missing something?

  2. Peter Cooper says:

    Enterprise rollouts.

    You won't believe the amount of proposals I see where the "hosting environment" is just J2EE or something else. Sysadmins at those kinds of shops (if they even have them, often they just "outsource" in-house hosting!) don't like playing around with things like Mongrel, etc.. they have a system and you gotta stick to it. If they support TomCat, then being able to roll out apps with it can mean your Rails app could be deployed in an enterprise environment.. and there's big money in that.

  3. Hendy Irawan says:

    This is really cool... More choices are very good, at least in this matter. :-)

  4. Pingback: Java, Please! Stirred, Not Shaken

  5. Jonathan Rochkind says:

    Do you think such a weird hacky solution will really be stable/scalable enough for an enterprise deployment? I'm suspicious, but just based on the general principle, I don't know any of the details at all (or enough to understand them).

Other Posts to Enjoy

Twitter Mentions