Copy$ ruby -run -ehttpd . -p8000
$ ruby -run -ehttpd . -p8000
See the provided link for other languages.