I ran into an issue today after running commands like:
heroku run bash
Running bash on β¬’ my-app... up, run.8292 (Standard-1X)
~ $ rails db:status
/usr/bin/env: βruby --yjitβ: No such file or directory
/usr/bin/env: use -[v]S to pass options in shebang lines
Running Rails 7 with YJIT works locally with this shebang which goes at the top of bin/rails:
#!/usr/bin/env ruby --yjit