Last active
December 17, 2015 07:58
-
-
Save jackpooley/5576329 to your computer and use it in GitHub Desktop.
Serve current directory in with ruby.
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
| #!/usr/bin/env sh | |
| sudo ruby -rwebrick -e "w = WEBrick::HTTPServer.new(:Port => 80, :DocumentRoot => Dir.pwd); %w(TERM INT).each {|s| trap(s) {w.shutdown}};w.start" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment