Last active
May 2, 2016 17:54
-
-
Save mjc-gh/de84bac640fda8628109ff8a2ed4abe2 to your computer and use it in GitHub Desktop.
This file contains 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
# http://www.barkingiguana.com/2010/04/11/a-one-line-web-server-in-ruby/ | |
ruby -rwebrick -e'WEBrick::HTTPServer.new(port: ARGV.pop.to_i, BindAddress: ARGV.pop.to_s, DocumentRoot: Dir.pwd).start' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment