Skip to content

Instantly share code, notes, and snippets.

@yasuyk
Created January 13, 2013 20:14
Show Gist options
  • Save yasuyk/4525955 to your computer and use it in GitHub Desktop.
Save yasuyk/4525955 to your computer and use it in GitHub Desktop.
webrick oneliner
ruby -rwebrick -e "server=WEBrick::HTTPServer.new(:DocumentRoot => './', :Port => 8080);['INT', 'TERM'].each {|signal| trap(signal){ server.shutdown }};server.start;"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment