V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
Livid
V2EX  ›  macOS

WorldWideWeb

  •  
  •   Livid · 2022-06-04 12:56:41 +08:00 · 2242 次点击
    这是一个创建于 685 天前的主题,其中的信息可能已经有所发展或是发生改变。
    老牌 macOS 开发和设计公司 The Iconfactory 做了一个 Web 服务器:

    https://blog.iconfactory.com/2022/06/worldwideweb-part-2/
    5 条回复    2022-06-05 15:59:26 +08:00
    ahu
        1
    ahu  
       2022-06-04 13:10:12 +08:00
    interesting
    rainchen
        2
    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
        3
    Warren1027  
       2022-06-04 20:34:57 +08:00 via iPhone
    @rainchen 哈哈我一直是这么做的,最新的 macOS 只内置了 Python3 ,不过依然可以用这个方式来简单的启动一个 Web 服务器
    q1angch0u
        4
    q1angch0u  
       2022-06-05 00:25:14 +08:00
    macOS 里也内置了 apache ,usage: apachectl start
    sobigfish
        5
    sobigfish  
       2022-06-05 15:59:26 +08:00
    我以前一直用的 npx serve 后来用几行代码的 go 重写了一个😂
    他们用的这个库好像很强
    https://github.com/httpswift/swifter
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   4750 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 09:56 · PVG 17:56 · LAX 02:56 · JFK 05:56
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.