Livid
403.84D
563.96D
V2EX  ›  macOS

WorldWideWeb

  •  
  •   Livid ·
    PRO
    · Jun 4, 2022 · 3579 views
    This topic created in 1617 days ago, the information mentioned may be changed or developed.
    老牌 macOS 开发和设计公司 The Iconfactory 做了一个 Web 服务器:

    https://blog.iconfactory.com/2022/06/worldwideweb-part-2/
    5 replies  •  2022-06-05 15:59:26 +08:00
    ahu
    ahu
    Jun 4, 2022
    1
    interesting
    rainchen
    rainchen
    Jun 4, 2022
    2
    想不到应用场景,在 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
    Warren1027
    Jun 4, 2022 via iPhone
    3
    @rainchen 哈哈我一直是这么做的,最新的 macOS 只内置了 Python3 ,不过依然可以用这个方式来简单的启动一个 Web 服务器
    runo
    runo
    Jun 5, 2022
    4
    macOS 里也内置了 apache ,usage: apachectl start
    run2
    run2
    Jun 5, 2022
    5
    我以前一直用的 npx serve 后来用几行代码的 go 重写了一个😂
    他们用的这个库好像很强
    https://github.com/httpswift/swifter
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1866 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 08:58 · PVG 16:58 · LAX 00:58 · JFK 03:58
    ♥ Do have faith in what you're doing.