部署时Heroku管道版本扣 debugging 误

ie3xauqp  于 2023-03-18  发布在  其他
关注(0)|答案(1)|浏览(111)

我一直在尝试将rails4和ruby 2.6.5版本部署到Heroku管道中。在发布步骤中出现以下错误。
错误跟踪

Running release command...
bundler: failed to load command: rake (/app/vendor/bundle/ruby/2.6.0/bin/rake)
LoadError: library not found for class Digest::SHA1 -- digest/sha1
  /app/vendor/ruby-2.6.5/lib/ruby/2.6.0/digest.rb:16:in `const_missing'
  /app/vendor/ruby-2.6.5/lib/ruby/2.6.0/digest.rb:100:in `block in Digest'
  /app/vendor/ruby-2.6.5/lib/ruby/2.6.0/digest.rb:98:in `synchronize'
  /app/vendor/ruby-2.6.5/lib/ruby/2.6.0/digest.rb:98:in `Digest'
  ...........
72qzrwbm

72qzrwbm1#

我相信您必须将gem 'digest'添加到您的Gemfile并运行bundle install,然后再次部署到Heroku。
https://github.com/ruby/digest

相关问题