如何允许 gem 在 digitalocean 服务器上从 github 源安装

How to allow gem install from github source on digitalocean server

您好,感谢阅读!

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

Retrying 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 due to error (2/4): Bundler::Source::Git::GitCommandError Git error: command 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 in directory /Dir has failed.fatal: unable to connect to github.com: github.com[0:IP]: errno=Connection refused github.com[1:IP]: errno=Connection refused

任何对此的帮助都很棒。

提前致谢。

解决方案是更改全局。

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