我正在使用自托管 chatwoot使用 ubuntu 在 AWS 上安装。
我正在升级 guide 之后的 chatwoot 版本但是当我想预编译 Assets 时,我遇到了一个错误
Your Ruby version is 2.7.0, but your Gemfile specified 3.0.2
但是当我得到 ruby 版本时,它表明我的版本已经与 Gemfile 中指定的相同。Screenshot of the problem
我对这个问题有点茫然。
提前致谢。
最佳答案
您最好安装 Ruby 2.7.0 以获得兼容性。您本地机器中的 Ruby 版本与 Gemfile 中声明的版本不同。
如果您使用的是 rvm:
rvm install 2.7.0
rvm use 2.7.0
否则,如果您使用的是 rbenv:rbenv install 2.7.0
rbenv local 2.7.0
关于ruby-on-rails - rails : Error running rake due to different ruby version,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/72597676/