Skip to content

Instantly share code, notes, and snippets.

@ParkinT
Forked from emad-elsaid/server.rb
Created March 30, 2014 01:15
Show Gist options
  • Save ParkinT/9865748 to your computer and use it in GitHub Desktop.
Save ParkinT/9865748 to your computer and use it in GitHub Desktop.
require 'webrick'
Port = 3000
Directory = Dir::pwd
WEBrick::HTTPServer.new(
Port: Port,
DocumentRoot: Directory
).start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment