导轨:由于不同的红宝石版本而导致的耙子出错

发布于 2025-02-06 18:39:33 字数 563 浏览 2 评论 0原文

我正在使用一个自我托管 chatwoot 使用ubuntu在AWS上安装。

我正在升级指南但是什么时候我想预先编译资产,遇到错误,

Your Ruby version is 2.7.0, but your Gemfile specified 3.0.2

但是当我获得Ruby版本时,它指出我的版本已经与Gemfile中指定的版本相同。

问题的屏幕截图

我在这个问题上有点丢失。

提前致谢。

I'm using a self-hosted chatwoot installation on AWS using ubuntu.

I'm upgrading the chatwoot version following the guide but when i want to precompile the assets, I run into an error

Your Ruby version is 2.7.0, but your Gemfile specified 3.0.2

But when i get the ruby version, it states that my version is already the same as specified in the Gemfile.

Screenshot of the problem

I'm kind of loss at this problem.

Thanks in advance.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

ㄟ。诗瑗 2025-02-13 18:39:33

最好安装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

You better install Ruby 2.7.0 for compatibility. The Ruby version in your local machine is different from the one declared in Gemfile.

If you're using rvm:

rvm install 2.7.0
rvm use 2.7.0

else if you're using rbenv:

rbenv install 2.7.0
rbenv local 2.7.0
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文