加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

ruby-on-rails – 如何从heroku上的github中提取插件?

发布时间:2020-12-16 22:45:00 所属栏目:百科 来源:网络整理
导读:的Gemfile: ...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 (/h
的Gemfile:
...
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 /不存在…

解决方法

看起来:你提供的git param会导致捆绑器尝试将其拉过ssh.您需要使用公共存储库地址.请尝试以下方法:
gem 'paperclip',:git => 'git://github.com/mdrozdziel/paperclip.git'

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读