V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
Livid
271.91D
572.38D
V2EX  ›  macOS

WorldWideWeb

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