Created
February 23, 2012 20:36
-
-
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'
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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