Skip to content

Instantly share code, notes, and snippets.

@abronte
Created May 8, 2010 05:22
Show Gist options
  • Select an option

  • Save abronte/394371 to your computer and use it in GitHub Desktop.

Select an option

Save abronte/394371 to your computer and use it in GitHub Desktop.
Simple web server
#!/usr/bin/ruby
require 'rubygems'
require 'mongrel'
server = Mongrel::HttpServer.new("0.0.0.0", "3000")
server.register("/", Mongrel::DirHandler.new("."))
server.run.join
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment