Last Updated: February 25, 2016
·
206
· dskecse

Serve a directory with Ruby web server

In case you'll need to serve a directory containing an index.html file (an AngularJS application in my case) on a web server, you can run default Ruby one that is WEBrick using

ruby -run -e httpd . -p 8000