WorldWideWeb

2022-06-04 12:56:41 +08:00
 Livid
老牌 macOS 开发和设计公司 The Iconfactory 做了一个 Web 服务器:

https://blog.iconfactory.com/2022/06/worldwideweb-part-2/
2248 次点击
所在节点    macOS
5 条回复
ahu
2022-06-04 13:10:12 +08:00
interesting
rainchen
2022-06-04 20:29:45 +08:00
想不到应用场景,在 mac 中能做 html 开发的,一句 “python -m http.server 8080” 可以,不用装任何库或软件。
“but as Apple continues to remove open source components from its standard macOS distribution”
是新版的 mac os 中不再内置 python 了吗?
Warren1027
2022-06-04 20:34:57 +08:00
@rainchen 哈哈我一直是这么做的,最新的 macOS 只内置了 Python3 ,不过依然可以用这个方式来简单的启动一个 Web 服务器
q1angch0u
2022-06-05 00:25:14 +08:00
macOS 里也内置了 apache ,usage: apachectl start
sobigfish
2022-06-05 15:59:26 +08:00
我以前一直用的 npx serve 后来用几行代码的 go 重写了一个😂
他们用的这个库好像很强
https://github.com/httpswift/swifter

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/857232

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX