pythonrubyopenshiftiron.io

upgrading Ruby on Openshift (Python Cartridge)


I'm working on a Flask app + deploying to RedHat OpenShift using the Python 2.7 cartridge. I need to use some ruby CLI tools to create & upload Iron.io Workers, but the CLI tool requires Ruby 1.9.2 and the cart only has Ruby 1.8.7.

I can't install rvm / rbenv via sshing into the gear, because OpenShift won't give you root access. So, is there a way to install Ruby on OpenShift without sudo or am I SOL?

(Somebody at Iron.io suggested using Iron.io via Docker, but that seems like overkill for scheduling SMS texts.)


Solution

  • you can't update your ruby cartridge on openshift. You will have to make a new app and use ruby 1.9 from very beginning. You can use something like:

    rhc app create myapp ruby-1.9