• 请不要在回答技术问题时复制粘贴 AI 生成的内容
mentalidade
V2EX  ›  程序员

consul 的可执行文件怎么输出的页面?

  •  
  •   mentalidade · Nov 2, 2017 · 2222 views
    This topic created in 3289 days ago, the information mentioned may be changed or developed.

    consul 和 open-falcon 都是 go 写的,这个 open-falcon 解压后包文件目录里面有很多的 html,js,css 文件。

    但是 consul 解压后就只有一个 consul 文件。执行之后localhost:8500/ui的页面哪里来的呢?

    4 replies  •  2017-11-03 10:06:39 +08:00
    sirgod
    sirgod
    Nov 2, 2017
    1
    有些工具能把资源文件打包进最终的可执行文件里
    mritd
    mritd
    Nov 2, 2017 via iPhone
    2
    打进去了
    mentalidade
    mentalidade
    OP
    Nov 3, 2017
    3
    @sirgod
    @mritd 好吧,感谢
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2168 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 99ms · UTC 16:03 · PVG 00:03 · LAX 08:03 · JFK 11:03
    ♥ Do have faith in what you're doing.