在我安装Active Admin获取设置之前,一切正常。
当我运行bundle install时会发生这种情况:
Fetching git://github.com/gregbell/active_admin.git
fatal: unable to connect to github.com:
github.com[0: 192.30.252.129]: errno=Operation timed out
Git error: command `git clone 'git://github.com/gregbell/active_admin.git'
"/Users/Kenneth/.rvm/gems/ruby-2.0.0-p353/cache/bundler/git/active_admin-d67faab65e9b74efbc8efb4a777a851e9f78b2ca"
--bare --no-hardlinks` in directory /Users/Kenneth/Desktop/U2K has failed
My Gemfile如下所示:
source 'https://rubygems.org'
ruby '2.0.0'
gem 'rails', '4.0.1'
gem 'sass-rails', '~> 4.0.0'
gem 'uglifier', '>= 1.3.0'
gem 'coffee-rails', '~> 4.0.0'
gem 'jquery-rails'
gem 'turbolinks'
gem 'bootstrap-sass', '~> 3.0.3.0'
gem 'devise', '~> 3.1.1'
gem 'activeadmin', github: 'gregbell/active_admin'
gem 'jbuilder', '~> 1.2'
group :development, :test do
gem 'sqlite3'
end
group :production do
gem 'pg'
gem 'rails_12factor'
end
group :doc do
# bundle exec rake doc:rails generates the API under doc/api.
gem 'sdoc', require: false
end
由于
答案 0 :(得分:0)
首先在终端尝试排除Bundler的任何问题,但是你的问题似乎与github连接断断续续。
$ git clone 'git://github.com/gregbell/active_admin.git
其次,尝试一个特定的提交 - 比如
gem 'activeadmin', github: 'gregbell/active_admin' , :ref => '2c1a16368fd5fb8122329eb61c848bbd0e516870'