Skip to content

Instantly share code, notes, and snippets.

@shadowbq
Created February 23, 2012 20:36
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 shadowbq/1894923 to your computer and use it in GitHub Desktop.
Save shadowbq/1894923 to your computer and use it in GitHub Desktop.
gem server config.ru file - required for rack to mount 'gem server --daemon --port 8010 --bind 127.0.0.1'
require 'rubygems'
require 'rubygems/command'
require 'rubygems/server'
options = Hash.new
options[:port] = "8010"
options[:daemon] = true
options[:addresses] = "127.0.0.1"
options[:gemdir] = ["/usr/local/lib/ruby/gems/1.8/"]
Gem::Server.run options
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment