Skip to content

Instantly share code, notes, and snippets.

@glidenote
Created May 9, 2012 16:55
Show Gist options
  • Save glidenote/2646654 to your computer and use it in GitHub Desktop.
Save glidenote/2646654 to your computer and use it in GitHub Desktop.
#!/usr/bin/env ruby
# -*- coding: utf-8 -*-
require 'webrick'
include WEBrick
server = HTTPServer.new(
:DocumentRoot => File.join(Dir.pwd, "."),
:Port => 10080
)
trap("INT") { server.shutdown }
server.start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment