我尝试部署 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)