Scott's Recipes Logo

Upgrading Your HatchBox Classic App to Ruby 3.2

If you are looking to upgrade your app deployed with HatchBox Classic to Ruby 3.2, here are the steps:

  1. Obviously you have to have Ruby 3.2 installed locally; do the rvm / rbenv / chruby dark magic / sacrifice a goat in the dead of the night, etc — whatever works for you.
  2. Update your .ruby-version file for 3.2 (see below).
  3. Do the bundle install happy dance.
  4. Do the git add / commit / push trinity to initiate a deploy (or go into HatchBox and click deploy).

.ruby-version

❯ cat .ruby-version
3.2.0

Gemfile

> cat Gemfile | grep ruby | head -n3
source "https://rubygems.org"
ruby "~> 3.2"
#ruby "3.1.3"