小编Har*_*cks的帖子

Rails错误:无法激活redis(>= 3,< 5),已激活redis-5.0.4

我尝试部署 Rails 应用程序,但收到错误

can't activate redis (>= 3, < 5), already activated redis-5.0.4. Make sure all dependencies are added to Gemfile. (Gem::LoadError)
Run Code Online (Sandbox Code Playgroud)

我尝试删除 gemfile,运行捆绑安装/更新,但没有任何乐趣。我也尝试在 gemfile 中指定 redis 4.8.0 但仍然遇到相同的错误。

我的宝石文件:

source 'https://rubygems.org'
git_source(:github) { |repo| "https://github.com/#{repo}.git" }

ruby '2.7.0'

# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '~> 6.0.4'
# Use postgresql as the database for Active Record
gem 'pg', '>= 0.18', '< 2.0'
# Use Puma as the app server
gem 'puma', '~> 3.11'
# Use …
Run Code Online (Sandbox Code Playgroud)

ruby ruby-on-rails redis fly

4
推荐指数
1
解决办法
2198
查看次数

标签 统计

fly ×1

redis ×1

ruby ×1

ruby-on-rails ×1