TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Annyong, a small web server that serves static files from the current directory

36 点作者 remi大约 14 年前

9 条评论

jfr大约 14 年前
Simpler:<p><pre><code> python -m SimpleHTTPServer</code></pre>
评论 #2407814 未加载
评论 #2407772 未加载
评论 #2407942 未加载
评论 #2408209 未加载
评论 #2407781 未加载
评论 #2407963 未加载
评论 #2407741 未加载
评论 #2410654 未加载
jamesgeck0大约 14 年前
This is something I don't really understand about the way so many tiny Ruby projects are structured. Do you <i>need</i> 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?
评论 #2408135 未加载
AdamTReineke大约 14 年前
Named after that kid on Arrested Development! (Or rather, it means "hello" in Korean.)
评论 #2408078 未加载
评论 #2407865 未加载
评论 #2407971 未加载
评论 #2407954 未加载
mthomas大约 14 年前
I use thttpd: <a href="http://www.acme.com/software/thttpd/thttpd_man.html" rel="nofollow">http://www.acme.com/software/thttpd/thttpd_man.html</a> for simple fast serving.
chuhnk大约 14 年前
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.
评论 #2408083 未加载
Caged大约 14 年前
I use serve - <a href="https://github.com/jlong/serve" rel="nofollow">https://github.com/jlong/serve</a>. 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大约 14 年前
Also see my gem, Boost (<a href="https://github.com/ashleyw/boost" rel="nofollow">https://github.com/ashleyw/boost</a>). I designed it to prototype Haml/Sass/CoffeeScript sites in a transparent manner, but it'll serve anything from the current directory too.
HerraBRE大约 14 年前
Combine this with <a href="http://pagekite.net/" rel="nofollow">http://pagekite.net/</a> (my project) and it can be visible to the wider Internet, not just your local LAN. :-)
synnik大约 14 年前
The name might need work.<p>When skimming the HN front page, I thought it said: "Annoying small web server..."