Search code examples
nitrousio

Is Installing Jruby on Nitrious.io possible?


Does Nitrous.io support JRuby?

Installing it with RVM seems to attempt to run a sudo apt-get update, which it won't allow...

Thanks.


Solution

  • First you will need to update RVM.

    rvm get head
    

    From there you can install jruby:

    rvm install jruby
    

    Next, set RVM to use jruby.

    rvm use jruby
    

    Next, add jruby to your PATH.

    export PATH=$PATH:/opt/jruby/bin
    

    From there you should be able to check that jruby is working with the following command:

    jruby --version