Created
June 24, 2012 17:24
-
-
Save bspaulding/2984087 to your computer and use it in GitHub Desktop.
winston
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
#! /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