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:
- 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.
- Update your .ruby-version file for 3.2 (see below).
- Do the bundle install happy dance.
- 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"