Skip to content

Instantly share code, notes, and snippets.

@jdickey
Last active August 29, 2015 14:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jdickey/6dc1e839d631fee2fbb4 to your computer and use it in GitHub Desktop.
Save jdickey/6dc1e839d631fee2fbb4 to your computer and use it in GitHub Desktop.
Problem running local Gem server.

I have two systems on my local network, alpha.local and bravo.local. alpha is a Mac (OS X 10.8.5); bravo is a Linux box (Fedora 20).

  1. On bravo, I start gem server -V and get the message Server started at http://0.0.0.0:8808;
  2. On alpha, I run gem list --source http://bravo.local:8808, which produces a full list of gems installed on bravo;
  3. On alpha, I then run bundle install --gemfile Gemfile_local --jobs 3 --path vendor; it fails with the output
Updating git://github.com/bbatsov/rubocop.git
Fetching source index from http://bravo.local:8808/
Retrying source fetch due to error (2/3): Bundler::HTTPError Could not fetch specs from http://bravo.local:8808/
Retrying source fetch due to error (3/3): Bundler::HTTPError Could not fetch specs from http://bravo.local:8808/
Could not fetch specs from http://bravo.local:8808/

What am I doing wrong? My Gemfile_local is below; rather obviously, it's copied from my project's regular Gemfile, with only the source replaced.

# source 'https://rubygems.org'
# source 'https://rails-assets.org'
source 'http://bravo.local:8808'
gem 'rails', '3.2.17'
# Bundle edge Rails instead:
# gem 'rails', :git => 'git://github.com/rails/rails.git'
gem 'sqlite3'
# Gems used only for assets and not required
# in production environments by default.
group :assets do
gem 'sass-rails', '~> 3.2.3'
gem 'coffee-rails', '~> 3.2.1'
# See https://github.com/sstephenson/execjs#readme for more supported runtimes
# gem 'therubyracer', :platforms => :ruby
gem 'uglifier', '>= 1.0.3'
end
gem 'jquery-rails'
# To use ActiveModel has_secure_password
# gem 'bcrypt-ruby', '~> 3.0.0'
# To use Jbuilder templates for JSON
# gem 'jbuilder'
# Use unicorn as the app server
# gem 'unicorn'
# Deploy with Capistrano
# gem 'capistrano'
# To use debugger
# gem 'debugger'
# non-generated addtions below
gem 'mutations'
gem 'haml-rails'
gem 'naught'
gem 'rails_config'
gem 'thin'
gem 'yajl-ruby'
gem 'draper'
# gem 'draper_simple_form'
gem 'simple_form'
gem 'nokogiri'
group :assets do
gem 'rails-assets-bootstrap'
gem 'rails-assets-bootswatch'
gem 'rails-assets-sugar'
gem 'rails-assets-underscore'
end
group :development do
gem 'annotate'
gem 'bullet'
gem 'better_errors'
gem 'binding_of_caller'
gem 'meta_request'
gem 'metric_fu'
gem 'pry-full'
gem 'pry-rails'
gem 'pry-rescue'
gem 'rails_panel'
gem 'rubocop', git: 'git://github.com/bbatsov/rubocop.git'
gem 'rails-footnotes'
end
group :development, :test do
gem 'capybara'
gem 'capybara-webkit'
gem 'database_cleaner'
gem 'quiet_assets'
gem "rspec"
gem "rspec-html-matchers"
gem "rspec-http"
gem "rspec-rails"
gem 'ruby-growl'
gem 'simplecov', require: false
gem 'tapout'
gem 'teaspoon', '~> 0.7.9'
end
group :test do
gem 'blind'
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment