Heroku与ruby1.9.3造成许多不同的崩溃

前端之家收集整理的这篇文章主要介绍了Heroku与ruby1.9.3造成许多不同的崩溃前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我在Gemfile中重新部署我的heroku应用程序和一个新的宝石,它在启动时崩溃
/app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.3/lib/active_support/dependencies.rb:251:in `require': libruby.so.1.9: cannot open shared object file: No such file or directory - /app/vendor/bundle/ruby/1.9.1/gems/bcrypt-ruby-3.0.1/lib/bcrypt_ext.so (LoadError)

无论我部署什么分支(旧的稳定的…),只有通过做一个heroku回滚来修复这个事情.

我相信这是由heroku最近更新他们的ruby1.9.3造成的,因为我有这个问题Heroku app crashes with ‘libruby.so.1.9: cannot open shared object file’.删除nokogiri宝石阻止了我正在获得的异常,但是还有这个.当我添加新宝石时,会发生更类似的错误.

整个问题通过部署到一个新的heroku应用程序解决了,但这不是我可以在我的生产服务器上做的.

有关修复问题或以某种方式“刷新”我的应用程序的任何想法?

我的gemfile:

source "https://rubygems.org"

ruby "1.9.3"
gem "rails","3.2.3"
gem "thin"

# Bundle edge Rails instead:
# gem "rails",:git => "git://github.com/rails/rails.git"

gem "mongoid"
gem "devise"
gem "haml"
gem "sass"
gem "exceptional"
gem "kaminari"
gem "mongoid_search"
#gem "nokogiri"
gem "bson_ext"
gem "heroku-mongo-backup"
gem "aws-s3"
# Gems used only for assets and not required
# in production environments by default.
group :assets do
  gem "haml-rails","~> 0.3.4"
  gem "sass-rails","~> 3.2.3"
  gem "coffee-rails","~> 3.2.1"

  # See https://github.com/sstephenson/execjs#readme for more supported runtimes
  # gem "therubyracer",:platform => :ruby

  gem "uglifier",">= 1.0.3"
end

gem "jquery-rails"

group :test do
  gem "mongoid-rspec"
end

# To use ActiveModel has_secure_password
# gem "bcrypt-ruby","~> 3.0.0"

# To use Jbuilder templates for JSON
# gem "jbuilder"

# Use unicorn as the app server
# gem "unicorn"

# Deploy with Capistrano
# gem "capistrano"

# To use debugger
# gem "ruby-debug19",:require => "ruby-debug"

#
group :development do
  gem "letter_opener"
end

解决方法

只是FYI,

在与Heroku支持部门联系之后,您应该遵循以下3个简单的步骤:

>安装这个heroku-repo插件:heroku插件:安装https://github.com/lstoll/heroku-repo.git
>运行以下命令:heroku repo:purge_cache
>再次部署你的应用程序

希望有帮助!

猜你在找的Ruby相关文章