Gem is not deleted on 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. 

My application crashes because it cannot find gbarcode - which I no longer want to use. I removed the jewel from the development environment and I want to push it to the hero. How can I download the application without a gem?

0
source share
2 answers

You need a gem through a barcode plugin.

Remove the plug barcoder, delete the directory vendor / plugins / barcoder, and everything will be fine.

+2
source

Still not sure about the exact failure.

As a result, I created a new heroku application, duplicated local files and rewritten domain names. The application now works fine.

This is a cheap workaround - but it seems to work.

0
source

All Articles