When I run bundle install, I get no errors. But when I try to run puma, I get the error:
Puma starting in single mode...
* Puma version: 5.6.5 (ruby 3.0.2-p107) ("Birdie's Version")
* Min threads: 5
* Max threads: 5
* Environment: development
* PID: 95251
Your Ruby version is 3.0.2, but your Gemfile specified 3.1.2
! Unable to load application: SystemExit: exit
but when I run rbenv local
, I get: 3.1.2
and ruby -v
gives: ruby 3.1.2p20 (2022-04-12 revision 4491bb740a) [x86_64-linux]
and my Gemfile has ruby "3.1.2"
Why does Puma still think it should be 3.0.2? I should note that I'm running puma with sudo... because I want to have the ability to run https on port 443 at 0.0.0.0 - when I run rails server
all by itself, everything works fine and Puma shows 3.1.2 as expected.
I've looked through other similar questions and I haven't found anything that works.