Ruby

Ruby is officially supported by Scalingo. Furthermore, custom support is added for the Rails framework in all its versions.

Buildpack

The buildpack is based on Bundler and will install the dependencies defined in the Gemfile and Gemfile.lock of your project (source of the buildpack).

Ruby application

Presence of a Gemfile

Rack based application

Presence of a config.ru

Rack environment

When a Rack application is detected, the following environment variable will automatically be set by the platform:

  • RACK_ENV=production

Rails application

Rails app detection

Rails 2

Presence of a config/environment.rb

Rails 3, Rails 4

Presence of a config/application.rb

Rails 5

Presence of a config/application.rb

For Rails 5.1, node and yarn will be automatically installed if the gem webpacker is installed.

Rails environment

When a Rails application is detected, the following environment variables will automatically be set by the platform:

  • RACK_ENV=production
  • RAILS_ENV=production

Specifying a custom Ruby runtime

If your need to install a custom version of Ruby, you can achieve that by specifying it in your Gemfile:

Ruby MRI 2.4.2

ruby "2.4.2"

JRuby 2.0.0

ruby "2.0.0", :engine => "jruby", :engine_version => "1.7.20"

List of the compatible runtimes

Only last patch version of each major release is listed here, but other minor version are also present if your require them for specific tests.

MRI

  • 2.5.0
  • 2.4.2
  • 2.3.5
  • 2.2.8
  • 2.1.10
  • 2.0.0

Jruby

  • 1.7.18: Ruby versions: 1.8.7, 1.9.3, 2.0.0
  • 1.7.19: Ruby versions: 1.8.7, 1.9.3, 2.0.0
  • 1.7.20: Ruby versions: 1.8.7, 1.9.3, 2.0.0
schedule 27 Oct 2017