Annyong, a small web server that serves static files from the current directory
Simpler:
python -m SimpleHTTPServerThis is something I don't really understand about the way so many tiny Ruby projects are structured. Do you need six folders to hold about 200 lines of code? It's organized, but it seems like it's more work to get a grasp on the whole program. Is this something enforced by rack or rubygems?
Named after that kid on Arrested Development! (Or rather, it means "hello" in Korean.)
I use thttpd: http://www.acme.com/software/thttpd/thttpd_man.html for simple fast serving.
Can I please ask why this is being upvoted without being downvoted? I'm not asking out of arrogance, hatred or jealousy infact I think the project is quite cool as its similar to what I have done myself using eventmachine in ruby and libevent in c but is it HN front page worthy? I feel like its been done to death.
I use serve - https://github.com/jlong/serve. It can render erb, haml, html, and has the concept of a layout. It can also be as simple as `serve` in the current directory to serve up any files or directories.
Also see my gem, Boost (https://github.com/ashleyw/boost). I designed it to prototype Haml/Sass/CoffeeScript sites in a transparent manner, but it'll serve anything from the current directory too.
Combine this with http://pagekite.net/ (my project) and it can be visible to the wider Internet, not just your local LAN. :-)
The name might need work.
When skimming the HN front page, I thought it said: "Annoying small web server..."