0

我想部署 rails3 的示例项目。当我运行“捆绑安装”时,它告诉我远程错误:找不到存储库。我是 git、github 和 rails3 的新手。但我已经创建了一个 github 帐户和配置git和github很好。我不知道发生了什么。如果有任何帮助,我将非常感激!

这是控制台消息(ubuntu 12.04LST):

magic@magic-ThinkPad-T430u:~/文档/rails/ticketee-book$ bundle

Fetching gem metadata from http://rubygems.org/.......
Fetching gem metadata from http://rubygems.org/..
Fetching git://github.com/radar/rack-test
fatal: remote error: Repository not found.
Git error: command `git clone 'git://github.com/radar/rack-test'
"/home/magic/.rvm/gems/ruby-1.9.3-p392@rails3.2/cache/bundler/git/rack-test-
8ce034d275474b0b137179c1bd5be3e5ee2e2464" 
--bare --no-hardlinks` in directory /home/magic/文档/rails/ticketee-book has failed.

这是宝石文件:

source 'http://rubygems.org'

gem 'rails', :git => "git://github.com/rails/rails", :branch => "3-1-stable"
# gem 'arel',      :git => 'git://github.com/rails/arel.git'
gem 'rack'
gem 'sprockets', :git => "git://github.com/sstephenson/sprockets.git"

gem 'sqlite3'

gem 'sass', '~> 3.1.0.alpha'
gem 'coffee-script'

gem 'dynamic_form'

gem 'devise', :git => "git://github.com/plataformatec/devise.git"
gem 'cancan'

gem 'paperclip', :git => "git://github.com/thoughtbot/paperclip.git"

gem 'searcher'
gem 'kaminari'

gem 'jquery-rails'
gem "oa-oauth", :require => "omniauth/oauth"
gem "delayed_job"

# gem "forem", :git => "git://github.com/radar/forem"
gem "ticketee-forem", :require => "forem", :path => "../forem"

gem 'sinatra'

group :test, :development do
  gem 'gmail'
  gem 'rspec-rails', '~> 2.6.1.beta1'
end

group :test do
  gem 'rack-test', :git => "git://github.com/radar/rack-test"
  gem 'cucumber-rails', :git => "git://github.com/cucumber/cucumber-rails"
  gem 'capybara'
  gem 'database_cleaner'
  gem 'factory_girl'
  gem 'email_spec'
  gem 'launchy'
end

group :production do
  gem 'pg'
end
4

2 回答 2

1

在您的Gemfile, 在test组中,您有以下行

gem 'rack-test', :git => "git://github.com/radar/rack-test"

它将指示 bundler 克隆存储库并将其内容用作 gem。由于 Github 上不再存在存储库,因此bundle失败。

您应该编辑您的 Gemfile 并使用新的存储库位置或使用来自rubygems.org. 最后,您必须编辑 gemfile 以使用以下替代方法之一:

gem 'rack-test', :git => "https://github.com/brynary/rack-test.git"
# or
gem "rack-test"
于 2013-04-19T12:41:14.593 回答
0

不,问题是存储库不再存在。尝试在新地址上下载存储库:

git clone git://github.com/brynary/rack-test.git

现在克隆完成后,在终端执行:

cd rack-test

现在您位于very创建时创建的目录中git clone,然后尝试运行命令:

bundle install --path vendor/bundle

一切都应该工作

于 2013-04-19T08:47:35.457 回答