Skip to content

Instantly share code, notes, and snippets.

@craigw
Created April 11, 2010 16:50
Show Gist options
  • Save craigw/362866 to your computer and use it in GitHub Desktop.
Save craigw/362866 to your computer and use it in GitHub Desktop.
# run with ruby -rubygems serve.rb
require 'mongrel'
h = Mongrel::HttpServer.new("0.0.0.0", "3000")
h.register("/", Mongrel::DirHandler.new(File.dirname(__FILE__)))
h.run.join
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment