"git://github.com/tenmiles/backup.git", :ref =>...">

Bundler throws No Such file or directory for installing gem

In the gemfile,

gem "backup", :git => "git://github.com/tenmiles/backup.git", :ref => "develop" 

n locally and at the stage, bundle install completed successfully. In production, when bundle install --deployment occurs, bundler throws this error

 Using backup (3.0.19) from git://github.com/tenmiles/backup.git (at develop) /usr/local/lib/ruby/site_ruby/1.9.1/rubygems/installer.rb:365:in `initialize': No such file or directory - /home/anand/public_html/myapp/releases/20111113170352/vendor/bundle/ruby/1.9.1/bundler/gems/gems/backup-3.0.19/bin/backup (Errno::ENOENT) 

I registered at /home/anand/public_html/myapp/releases/20111113170352/vendor/bundle/ruby/1.9.1/bundler/gems/gems/ , but backup-150fb5168ebe is there! His gem is set through git. why the supplier is looking for backup-3.0.19. How can I renew the pearl and ask for installments to reinstall the gem from scratch.

Please, help

+4
source share
3 answers

Try http://raflabs.com/blogs/silence-is-foo/2010/07/19/installing-a-gem-fork-from-github-source/ U you can install a gem in your gem installed using the method indicated there

+1
source

I had this problem with 1.0.10, but when I upgraded the servers to bundler 1.0.21, the problem disappeared.

+1
source

I have some problem with the current spork. If you specify a version, it should work

 gem "backup", '1.0', :git => "git://github.com/tenmiles/backup.git" 

he fixed it for me

0
source

Source: https://habr.com/ru/post/1381012/


All Articles