【问题标题】:Heroku fails pushing 'git@github.com:lgs/mongoid_taggable_with_context.git'Heroku 无法推送 'git@github.com:lgs/mongoid_taggable_with_context.git'
【发布时间】:2012-07-25 22:04:08
【问题描述】:

Heroku 推送失败是由 Gemfile 中的以下 gem 引起的:

gem 'mongoid_taggable_with_context', :git => 'git@github.com:lgs/mongoid_taggable_with_context.git'

lsoave@ubuntu:~/rails/github/gitwatcher$ git push heroku +master
Counting objects: 233, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (196/196), done.
Writing objects: 100% (199/199), 286.76 KiB | 62 KiB/s, done.
Total 199 (delta 160), reused 2 (delta 2)

-----> Heroku receiving push
-----> Ruby/Rails app detected
-----> Using Ruby version: ruby-1.9.3
-----> Installing dependencies using Bundler version 1.2.0.rc
       Running: bundle install --without development:test --path vendor/bundle --binstubs bin/ --deployment
       Fetching gem metadata from http://rubygems.org/.......
       Fetching gem metadata from http://rubygems.org/..
       Updating git://github.com/rweng/jquery-datatables-rails.git
       Fetching git@github.com:lgs/mongoid_taggable_with_context.git
       Host key verification failed.
       fatal: The remote end hung up unexpectedly
       Git error: command `git clone 'git@github.com:lgs/mongoid_taggable_with_context.git' "/tmp/build_1mck6mlqu6pko/vendor/bundle/ruby/1.9.1/cache/bundler/git/mongoid_taggable_with_context-cf14763a075f5ec09e40c360c8537afb67040db7" --bare --no-hardlinks` in directory /tmp/build_1mck6mlqu6pko has failed.
 !
 !     Failed to install gems via Bundler.
 !
 !     Heroku push rejected, failed to compile Ruby/rails app

To git@heroku.com:gitwatcher.git
 ! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'git@heroku.com:gitwatcher.git'
lsoave@ubuntu:~/rails/github/gitwatcher$

【问题讨论】:

  • 你为什么不用gem "mongoid_taggable_with_context", "~> 0.8.1"
  • @uDaY 它不适用于 Mongoid 3.0.1 和新的 Moped 驱动程序,而另一个已被移植
  • 好的,我已经看到您对原始 gem 进行了一些更改。

标签: ruby-on-rails ruby deployment heroku cloud


【解决方案1】:

试过了吗?

gem 'mongoid_taggable_with_context', :git => 'git://github.com/lgs/mongoid_taggable_with_context.git'

【讨论】:

  • @Luca,谢谢。我正要说将您的答案标记为您自己的答案。 :)
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2014-04-01
  • 2013-10-31
  • 2015-09-05
  • 1970-01-01
  • 2016-12-14
相关资源
最近更新 更多