Created
January 13, 2013 20:14
-
-
Save yasuyk/4525955 to your computer and use it in GitHub Desktop.
webrick oneliner
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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