justincox Our Mastodon setup uses Ruby 3.0.2, installed under /opt/rh/rh-ruby30/
on the servers.
In your app directory there is a script named setenv
which you must source to set the environment before you run tootctl
commands, like so:
source ~/apps/name_of_app/setenv
Once that's done your shell session will be configured to use the correct Ruby and everything else that Mastodon needs.