【问题标题】:How to pull plugin from github on heroku?如何从heroku上的github拉插件?
【发布时间】:2010-09-19 10:44:55
【问题描述】:

宝石文件:

...
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/ 不存在...

【问题讨论】:

    标签: ruby-on-rails ruby-on-rails-3 heroku


    【解决方案1】:

    您提供的 :git 参数似乎导致捆绑程序尝试将其拉到 ssh 上。您需要使用公共存储库地址。请尝试以下方法:

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

    【讨论】:

    • 谢谢!这解决了我在 Spree 中遇到的一个问题(我还使用 git@github 语法添加了 gem)
    猜你喜欢
    • 2013-12-20
    • 1970-01-01
    • 2012-10-19
    • 1970-01-01
    • 1970-01-01
    • 2013-11-13
    • 1970-01-01
    • 2019-01-30
    • 2015-05-30
    相关资源
    最近更新 更多