[英]RVM: Ruby version changes after 'cd <Rails project>'
I've been using rvm for a few years and never encountered this problem.我已经使用rvm几年了,从未遇到过这个问题。 Can someone help me understand what is happening immediately after login?有人可以帮助我了解登录后立即发生的事情吗?
Debian 10 Rails 6.1.4.1 Debian 10 导轨 6.1.4.1
$ruby -v
ruby 3.0.0p0 (2020-12-25 revision 95aff21468) [x86_64-linux]
$cd rails/nbdb
$ruby -v
ruby 2.6.3p62 (2019-04-16 revision 67580) [x86_64-linux]
My Gemfile contains the line: ruby '3.0.0'
我的 Gemfile 包含以下行: ruby '3.0.0'
My.bash_profile contains: My.bash_profile 包含:
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*
Thanks.谢谢。
Is there a .ruby-version
in rails/nbdb? rails/nbdb 中有.ruby-version
吗? If so, move it elsewhere and you should be good.如果是这样,请将其移至其他地方,您应该会很好。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.