mardi 16 novembre 2021

Ruby On Rails executing with wrong version

I try to Run my new rails app using RubyMine, and it seems to use some wrong Ruby version and i can't figure out why! I used rbenv to setup the environment .ruby-version shows 3.0.2

/bin/zsh -c "bash -c 'env RBENV_VERSION=2.7.2 /usr/local/Cellar/rbenv/1.2.0/libexec/rbenv exec ruby /Users/ran/source/rails/MySite/bin/rails server -b 0.0.0.0 -p 3000 -e development'" Your Ruby version is 2.7.2, but your Gemfile specified 3.0.2

ran@ran-mac MySite % ruby --version ruby 3.0.2p107 (2021-07-07 revision 0db68f0233) [x86_64-darwin20] ran@ran-mac MySite %

What's wrong? I can not understand where it takes this 2.7.2 from! Thanks

Aucun commentaire:

Enregistrer un commentaire