Serves all the files in the current directory over HTTP on port 5000.

cd to the wished direcory and run (from command line):

ruby -run -e httpd . -p 5000

then browse to localhost:5000 in your browser

via: http://www.benjaminoakes.com/2013/09/13/ruby-simple-http-server-minimalist-rake/