Search code examples
ruby-on-railsjrubyjrubyonrails

Should a Rails app have to work in jRuby, when I want to deploy it via warble on a Java application Server?


I want to make sure, the app will work properly before I "warble" it. Does it have to work in jRuby for that or does it work anyway?


Solution

  • Normally it should work without a problem, but ... there are a few but's :)

    • jruby does not support all gems
    • it depends on the ruby version you developed against, it is not 1.9 compatible yet
    • i am not sure, but interacting with the system will not work in the same way i presume (e.g. calling batch-scripts, starting executables, ...)

    But if you don't do anything out of the ordinary, i guess it would not be a problem.

    That said, i think it is good practice to develop, or at least test, your application in the same environment (os/ruby-version) as your deployment platform.