A list of the supported Ruby versions that you can deploy with Hatchbox.io
Hatchbox supports the latest stable Ruby versions and all the way back to 1.8.7.
These are the versions of Ruby you can use on Hatchbox:
3.4.0 and newer
3.3.0 and newer
3.2.0 and newer
3.1.0 and newer
3.0.0 and newer
2.7.0 and newer
2.6.10
2.5.9
2.4.10
2.3.8
2.2.10
2.1.10
2.0.0-p648
1.9.3-p551
1.8.7-p374
If you're using Ruby 2.6 or earlier, only the latest version is supported. For example, you can use Ruby 2.6.10, but not 2.6.9 or earlier. We do this to encourage older applications to run the latest versions to make sure they have security and bug fixes up-to-date. You're running in production and don't want to have a vulnerable application that could be hacked.
Ruby 3.2+ are compiled with YJIT support.
Rails 7.2+ automatically enables YJIT on new applications running Ruby 3.3+, so you don't need to change anything for these versions.
Otherwise, YJIT can be enabled with an environment variable:
RUBYOPT="--yjit"
RUBY_YJIT_ENABLE=1