在任何来源中都找不到 bcrypt-3.1.12
Could not find bcrypt-3.1.12 in any of the sources
我在我的项目中安装了 gem 'devise'。这样做之后,我尝试迁移数据库;然而,由于 "Could not find bcrypt-3.1.12 in any of the sources",这似乎停止了。它告诉我 运行 bundle install 再次安装,这似乎不起作用。我必须提到该项目 运行 正在 docker。
我尝试卸载 gem 并重新安装,并删除了 gemfile.lock 文件。这些也失败了。
source 'https://rubygems.org'
git_source(:github) do |repo_name|
repo_name = "#{repo_name}/#{repo_name}" unless repo_name.include?("/")
"https://github.com/#{repo_name}.git"
end
gem 'rails', '~> 5.0.7', '>= 5.0.7.1'
gem 'mysql2', '>= 0.3.18', '< 0.6.0'
gem 'devise'
gem 'puma', '~> 3.0'
gem 'jbuilder', '~> 2.5'
gem 'bcrypt', platforms: :ruby
group :development, :test do
# Call 'byebug' anywhere in the code to stop execution and get a debugger console
gem 'byebug', platform: :mri
end
group :development do
gem 'listen', '~> 3.0.5'
# Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
gem 'spring'
gem 'spring-watcher-listen', '~> 2.0.0'
end
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]
问题已通过重建 docker 服务得到解决
docker-compose --build app
我在我的项目中安装了 gem 'devise'。这样做之后,我尝试迁移数据库;然而,由于 "Could not find bcrypt-3.1.12 in any of the sources",这似乎停止了。它告诉我 运行 bundle install 再次安装,这似乎不起作用。我必须提到该项目 运行 正在 docker。
我尝试卸载 gem 并重新安装,并删除了 gemfile.lock 文件。这些也失败了。
source 'https://rubygems.org'
git_source(:github) do |repo_name|
repo_name = "#{repo_name}/#{repo_name}" unless repo_name.include?("/")
"https://github.com/#{repo_name}.git"
end
gem 'rails', '~> 5.0.7', '>= 5.0.7.1'
gem 'mysql2', '>= 0.3.18', '< 0.6.0'
gem 'devise'
gem 'puma', '~> 3.0'
gem 'jbuilder', '~> 2.5'
gem 'bcrypt', platforms: :ruby
group :development, :test do
# Call 'byebug' anywhere in the code to stop execution and get a debugger console
gem 'byebug', platform: :mri
end
group :development do
gem 'listen', '~> 3.0.5'
# Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
gem 'spring'
gem 'spring-watcher-listen', '~> 2.0.0'
end
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]
问题已通过重建 docker 服务得到解决
docker-compose --build app