Archive for June, 2011

Nice web server script to serve any directory using WEBrick

Wednesday, June 22nd, 2011

At present, I am doing some web development in the form of a rich Javascript client. Now I have a need to serve up pages locally, but I don’t want to run a heavy web server just for that. So I wrote a little Ruby script to allow me to start a WEBrick server in any directory on the fly, which is great for testing content locally.