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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Show HN: “serve” your local directory very nicely with go

7 点作者 integrii超过 7 年前
<a href="https:&#x2F;&#x2F;github.com&#x2F;integrii&#x2F;serve" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;integrii&#x2F;serve</a><p>I got tired of the huge list of static asset server options out there. Python&#x27;s built in one, various ruby gems, piles of npm commands... So naturally I added another (the best!) one.<p>It is written in go, so that helps portability, speed. It&#x27;s name is just &#x27;serve&#x27;. No options or flags are required for invoking. It looks pretty. It supports hitting Command&#x2F;Control-c gracefully.<p>Hopefully this is useful to some people. Feedback welcome! Thanks!

2 条评论

nuggien超过 7 年前
This is easier:<p><pre><code> alias serve=&quot;python -m SimpleHTTPServer&quot; </code></pre> and is probably supported by every single *nix like system out there without installing anything.
brth超过 7 年前
How is this better than woof?<p><a href="http:&#x2F;&#x2F;www.home.unix-ag.org&#x2F;simon&#x2F;woof.html" rel="nofollow">http:&#x2F;&#x2F;www.home.unix-ag.org&#x2F;simon&#x2F;woof.html</a>
评论 #15208637 未加载