Posted about 3 years ago. Visible to the public.

Changing your deployment's ruby version

Manage the ruby version yourself

This is the default for new deployments.

Please contact to if you want to manage your Ruby version yourself for your legacy deployment.

These things will get configured:

  • We are installing and configuring rbenv with the ruby-build plugin for your deploy user.
  • Passenger-Ruby will get set to ${HOME}/.rbenv/shims/ruby
  • There will be a cronjob which gets executed every 5 minutes. This cronjobs checks if the ruby version specified in your .ruby-version is currently installed. If there is a problem you will get an email.

If you manage the Ruby version yourself you have to take care of the installation and configuration of the ruby versions yourself. Our capistrano-opscomplete gem can manage the ruby version automatically for you. You'll learn how to setup this in our Capistrano documentation -> 205 Capistrano: Install capistrano-opscomplete.

Important: You also have to make sure the bundler and (if you use it) geordi gem get's installed after installing a new ruby version.

Legacy configuration with OpsComplete

With the legacy opscomplete configuration it's not possible to change the ruby version of your deployment on your own.
That is due to the fact that we have to make sure you have the same and correct ruby version on all your servers and that the passenger is using the correct ruby version.

If you want to use another ruby version please contact

The process will then be:

  1. We will prepare the new ruby for your deployment
  2. You deploy your changes
  3. Immediately after that we will restart the webserver with the new ruby configured

Owner of this card:

Kim Jahn
Last edit:
5 months ago
by Kim Jahn
Posted by Kim Jahn to opscomplete
This website uses short-lived cookies to improve usability.
Accept or learn more