title: Your Ruby version is 2.7.0, but your Gemfile specified 3.0.0
body: <p>I followed this guide to deploy my rails app: <a href="https://gorails.com/deploy/ubuntu/20.04#ruby" rel="nofollow noreferrer">https://gorails.com/deploy/ubuntu/20.04#ruby</a>
  Everything works fine except i would like to use rails console on the server i deployed my app, and i can't because of this message :</p>
  <pre><code>Your Ruby version is 2.7.0, but your Gemfile specified 3.0.0
  </code></pre>
  <p>If i <code>ruby -v</code> with my deploy user, here is the answer <code>ruby 3.0.0p0 (2020-12-25 revision 95aff21468) [x86_64-linux</code></p>
  <p>But if i <code>sudo ruby -v</code>, here is the answer <code>ruby 2.7.0p0 (2019-12-25 revision 647ee6f091) [x86_64-linux-gnu]</code>. So i guess, that's where it comes from (as said in <a href="https://stackoverflow.com/questions/64389352/your-ruby-version-is-2-7-0-but-your-gemfile-specified-2-7-1">Your Ruby version is 2.7.0, but your Gemfile specified 2.7.1</a>)...</p>
  <p>Has anyone an idea of how i could do ?</p>
  <p>Edit : here is my deployment script, as deploy user</p>
  <pre><code>git clone https://github.com/rbenv/rbenv.git ~/.rbenv
  echo 'export PATH=&quot;$HOME/.rbenv/bin:$PATH&quot;' &gt;&gt; ~/.bashrc
  echo 'eval &quot;$(rbenv init -)&quot;' &gt;&gt; ~/.bashrc
  git clone https://github.com/rbenv/ruby-build.git ~/.rbenv/plugins/ruby-build
  echo 'export PATH=&quot;$HOME/.rbenv/plugins/ruby-build/bin:$PATH&quot;' &gt;&gt; ~/.bashrc
  git clone https://github.com/rbenv/rbenv-vars.git ~/.rbenv/plugins/rbenv-vars
  exec $SHELL
  rbenv install 3.0.0
  rbenv global 3.0.0
  gem install bundler
  </code></pre>