Suggestion: using https:// instead of git:// in Gemfile


(Harry Seo) #1

My development server is behind a firewall which allows only well-known ports like ssh, http and https.

The following line in the discourse Gemfile gives me an error after long waiting.

  gem 'redis-rails', :git => 'git://github.com/SamSaffron/redis-store.git'

Error

Updating git://github.com/SamSaffron/redis-store.git
github.com[0: 192.30.252.131]: errno=Connection timed out
fatal: unable to connect a socket (Connection timed out)

When I change git:// to https://, it works fine.

I found the similar issue on Stack Overflow.


(Sam Saffron) #2

My plan is to get rid of all git dependencies, either get the gems fixed upstream or rename them and publish to rubygems.


(Harry Seo) #3

You have a nice plan!
I can wait!


(Jeff Atwood) #4

Did we ever execute this plan?


(Sam Saffron) #5

Yes, our Gemfile is quite good


(Jeff Atwood) #6