Skip to content

Instantly share code, notes, and snippets.

@emad-elsaid
Created February 20, 2014 11:42
Show Gist options
  • Save emad-elsaid/9111787 to your computer and use it in GitHub Desktop.
Save emad-elsaid/9111787 to your computer and use it in GitHub Desktop.
create ruby server in 7 lines of code
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