【问题标题】:How to allow gem install from github source on digitalocean server如何允许在 digitalocean 服务器上从 github 源安装 gem
【发布时间】:2017-02-03 10:03:48
【问题描述】:

您好,感谢您的阅读!

我如何打开并允许 github gem 源在 digitalocean 服务器上运行。

由于错误(2/4)重试git clone 'git://github.com/tcocca/acts_as_follower.git' "/home/DIR/.rvm/gems/ruby-2.3.3/cache/bundler/git/acts_as_follower-325dbadb5c64b190d66abe4d3ec636f4d3716066" --bare --no-hardlinks --quiet:Bundler::Source::Git::GitCommandError Git 错误:目录/Dir 中的命令git clone 'git://github.com/tcocca/acts_as_follower.git' "/home/DIR/.rvm/gems/ruby-2.3.3/cache/bundler/git/acts_as_follower-325dbadb5c64b190d66abe4d3ec636f4d3716066" --bare --no-hardlinks --quiet 失败。致命:无法连接到github.com: github.com[0:IP]: errno=Connection 拒绝 github.com[1:IP]: errno=Connection denied

对此的任何帮助都会很棒。

提前致谢。

【问题讨论】:

  • 下面添加了解决方案。

标签: github rubygems bundler ruby-on-rails-5


【解决方案1】:

解决方案是改变全局。

git config --global url.https://github.com/.insteadOfgit://github.com/

【讨论】:

    猜你喜欢
    • 2011-02-04
    • 2016-07-15
    • 1970-01-01
    • 1970-01-01
    • 2021-06-21
    • 1970-01-01
    • 2013-09-15
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多