繁体   English   中英

无法通过Bundler安装宝石(推送到Heroku)

[英]Failed to install gems via Bundler (pushing to Heroku)

我在将Rails 4项目推到GIT时遇到问题:

johann@johann-R430-P430-R480:~/projects/spread$ git push heroku master
Fetching repository, done.
Counting objects: 133, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (90/90), done.
Writing objects: 100% (101/101), 266.75 KiB | 175 KiB/s, done.
Total 101 (delta 25), reused 0 (delta 0)

-----> Ruby app detected
-----> Compiling Ruby/Rails
-----> Using Ruby version: ruby-2.0.0
-----> Installing dependencies using 1.6.3
       Running: bundle install --without development:test --path vendor/bundle --binstubs vendor/bundle/bin -j4 --deployment
       Fetching gem metadata from https://rubygems.org/........
       Fetching additional metadata from https://rubygems.org/..
       Could not find tomz-libsvm-ruby-swig-0.3.3 in any of the sources
       Bundler Output: Fetching gem metadata from https://rubygems.org/........
       Fetching additional metadata from https://rubygems.org/..
       Could not find tomz-libsvm-ruby-swig-0.3.3 in any of the sources
 !
 !     Failed to install gems via Bundler.
 !

 !     Push rejected, failed to compile Ruby app

该应用程序可以完美地在localhost上运行,包括tomz-libsvm-ruby-swig-0.3.3。这可能是什么问题? :[ 提前致谢!

修改您的Gemfile以添加替代源...

所以代替...

source 'https://rubygems.org'

你应该有...

source 'https://rubygems.org'
source 'http://gems.github.com'

然后Heroku应该可以找到宝石。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM