宝石不在Heroku上卸载 [英] Gem not uninstalling on Heroku

查看:166
本文介绍了宝石不在Heroku上卸载的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

==> dyno-760868.log (crash) <==

/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require': no such file to load -- gbarcode (MissingSourceFile)
    from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
    from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:158:in `require'
    from /home/app/c6b26d71-eddb-4679-a962-fc9c69b7c8e4/vendor/plugins/barcoder/init.rb:3:in `evaluate_init_rb'
    from /usr/local/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/rails/plugin.rb:158:in `evaluate_init_rb'
    from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/core_ext/kernel/reporting.rb:11:in `silence_warnings'
    from /usr/local/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/rails/plugin.rb:154:in `evaluate_init_rb'
    from /usr/local/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/rails/plugin.rb:48:in `load'
    from /usr/local/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/rails/plugin/loader.rb:38:in `load_plugins'
     ... 22 levels...
    from /usr/local/lib/ruby/gems/1.8/gems/rack-1.0.1/lib/rack/builder.rb:29:in `instance_eval'
    from /usr/local/lib/ruby/gems/1.8/gems/rack-1.0.1/lib/rack/builder.rb:29:in `initialize'
    from /home/heroku_rack/heroku.ru:1:in `new'
    from /home/heroku_rack/heroku.ru:1

-----> Your application is requiring a file that it can't find.

我的应用程序崩溃,因为找不到gbarcode - 我不想使用它更多。我已经从我的开发环境中卸载了宝石,并希望将其推向heroku。如何在没有gem的情况下启动我的应用程序?

My App is crashing as it can't find gbarcode - which I don't wish to use any more. I have uninstalled the gem from my development environment and wish to push it to heroku. How can I get my app booting without the gem?

推荐答案

您需要通过条形码插件获得gem。

You are requiring the gem through the barcoder plugin.

通过删除vendor / plugins / barcoder目录来卸载 barcoder 插件,一切都会好的。

Uninstall barcoder plugin by deleting the vendor/plugins/barcoder directory and all will be fine.

这篇关于宝石不在Heroku上卸载的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆