4 ms·
Annyong, a small web server that serves static files from the current directory
- AdamTReineke 16y agoNamed after that kid on Arrested Development! (Or rather, it means "hello" in Korean.)
- ernestipark 16y agoAs a Korean I love this name.
- acconrad 16y agoBest. name. ever.
- thirsteh 16y agoAnnyong? Yes, annyong!
- isleyaardvark 16y agoLove the show, but I keep reading it as "Annoying".
- jfr 16y agoSimpler: python -m SimpleHTTPServer
- terhechte 16y agoAw, I was just about to write just that comment. :)
- mattew 16y agoMe too. I don't use python for development on a day to day basis but use the python SimpleHTTPServer all the time.
- remi 16y agoFunny thing is, one of the reason I wrote annyong was because I was getting tired of the boring SimpleHTTPServer listing style and found no simple alternatives :)
- wildmXranat 16y agoIndeed. I use this method way too much. In fact, when I baked my own static page compiler script, this was the 'built-in' server.
- tdavis 16y agoAlmost as simple, but production-ready (fast, daemonize-able, ssl, etc.): twistd -n web --port=8080 --path=.
- xutopia 16y agoThis isn't the same thing. Annyong shows you a list of files rather than serving straight up. If there is an index.html file it's just listed like all the other files. See the readme for more info.
- known 16y agohttps://addons.mozilla.org/en-US/firefox/addon/browser-server/ https://addons.mozilla.org/en-US/firefox/addon/browser-serve...
- drx 16y agoOr in python3: python -m http.server
- pclouds 16y agobusybox httpd
- HerraBRE 16y agoCombine this with http://pagekite.net/ http://pagekite.net/ (my project) and it can be visible to the wider Internet, not just your local LAN. :-)
- Caged 16y agoI use serve - https://github.com/jlong/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.
- ashleyw 16y agoAlso see my gem, Boost (https://github.com/ashleyw/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.
- mthomas 16y agoI use thttpd: http://www.acme.com/software/thttpd/thttpd_man.html http://www.acme.com/software/thttpd/thttpd_man.html for simple fast serving.
- jamesgeck0 16y agoThis 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?
- remi 16y agoI agree the project structure might be overkill. But that's just the way I organize my folders and files, you know, just in case I need to expand later :)
- chuhnk 16y agoCan 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.
- epochwolf 16y agoBasic submissions can't be downvoted.
- JoachimSchipper 16y agoThe grandparent almost certainly means "can I ask why this article is considered interesting without seeing my comment buried at -4".
- synnik 16y agoThe name might need work. When skimming the HN front page, I thought it said: "Annoying small web server..."