Skip to content

Instantly share code, notes, and snippets.

@rishiip
Forked from emad-elsaid/server.rb
Last active August 29, 2015 14:25
Show Gist options
  • Save rishiip/988ea846d2c3f25261ba to your computer and use it in GitHub Desktop.
Save rishiip/988ea846d2c3f25261ba 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