Skip to content

Instantly share code, notes, and snippets.

@bspaulding
Created June 24, 2012 17:24
Show Gist options
  • Save bspaulding/2984087 to your computer and use it in GitHub Desktop.
Save bspaulding/2984087 to your computer and use it in GitHub Desktop.
winston
#! /usr/bin/env ruby
require 'webrick'
include WEBrick
HTTPUtils::DefaultMimeTypes["appcache"] = "text/cache-manifest"
HTTPUtils::DefaultMimeTypes["js"] = "text/javascript"
HTTPUtils::DefaultMimeTypes["mp3"] = "audio/mpeg3"
server = HTTPServer.new(:Port => 9090, :DocumentRoot => Dir::pwd)
trap("INT") { server.shutdown }
server.start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment