Skip to content

Instantly share code, notes, and snippets.

@cori
Forked from gautamk/webrick_start.sh
Created September 21, 2018 03:17
Show Gist options
  • Save cori/9fe8872ab7b3853cc5488ede6effbd1a to your computer and use it in GitHub Desktop.
Save cori/9fe8872ab7b3853cc5488ede6effbd1a to your computer and use it in GitHub Desktop.
Start webrick server to serve files in the local directory
ruby -r webrick -e "s = WEBrick::HTTPServer.new(:Port => 8000, :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