Skip to content

Instantly share code, notes, and snippets.

@aboutaaron
Created June 5, 2013 19:15
Show Gist options
  • Save aboutaaron/5716406 to your computer and use it in GitHub Desktop.
Save aboutaaron/5716406 to your computer and use it in GitHub Desktop.
Quick Ruby server for static assets
require 'webrick'
include WEBrick
s = HTTPServer.new(
:Port => 3000,
:DocumentRoot => Dir::pwd
)
trap("INT"){ s.shutdown }
s.start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment