Force bundle install to use https:// instead of git:// for GitHub-based gems

前端 未结 7 1371
长发绾君心
长发绾君心 2020-12-24 04:49

I am trying to build a rails project and because the host I am working on doesn\'t have access to the Internet for the the git:// protocol (port 9418) I get errors like

7条回答
  •  太阳男子
    2020-12-24 05:51

    You should be able to put a complete Git URL in your Gemfile. For example:

    gem 'jasmine', :git => 'https://github.com/pivotal/jasmine-gem.git' 
    

提交回复
热议问题