代码之家  ›  专栏  ›  技术社区  ›  mdrozdziel

如何从Heroku上的Github中提取插件?

  •  8
  • mdrozdziel  · 技术社区  · 14 年前

    GemFile(GEM文件):

    ...
    gem 'paperclip', :git => 'git@github.com:mdrozdziel/paperclip.git'
    ...
    

    在推应用程序时,我得到以下错误。我链接的回购是公开的。

    Fetching git@github.com:mdrozdziel/paperclip.git
       Failed to add the host to the list of known hosts (/home/group_home/.ssh/known_hosts).
       Permission denied (publickey).
       fatal: The remote end hung up unexpectedly
       An error has occurred in git when running `git clone "git@github.com:mdrozdziel/paperclip.git" "/disk1/tmp/build_28099_23931178722320/.bundle/gems/ruby/1.8/cache/bundler/git/paperclip-c032df0dc0463697a1ce5ae3761bec95be700815" --bare --no-hardlinks. Cannot complete bundling.
    

    知道这里有什么问题吗?控制台显示/home/group_home/不存在…

    1 回复  |  直到 14 年前
        1
  •  21
  •   semanticart    14 年前

    您提供的:git-param似乎导致bundler尝试将其覆盖ssh。您需要使用公共存储库地址。请尝试以下操作:

    gem 'paperclip', :git => 'git://github.com/mdrozdziel/paperclip.git'