placeholder
V2EX  ›  问与答

tauri+angular 为啥调试运行没问题,打包安装之后就 502 错误了

  •  
  •   placeholder · May 5, 2023 · 1841 views
    This topic created in 1285 days ago, the information mentioned may be changed or developed.

    ng new 一个项目,

    在项目里 pnpm tauir init ,加 pnpm 是因为我用的是 pnpm 。

    init 的时候会有提示, beforeBuildCommand 是 ng build , beforeDevCommand 是 ng serve ,

    然后就完事儿了,其他啥我也没改,

    直接 ng serve 查看 web 端也行, 直接 pnpm tauri dev 查看桌面端也行,

    然后用 pnpm tauri build 打包成 msi 安装之后就不行了,打开显示 tauri.localhost 无法处理,http error 502

    有研究过的老哥指导一下,编程太难了,我想白嫖。

    源码: https://github.com/starc0086/rtnp

    hangbale
    hangbale
    May 5, 2023
    1
    build 出来的静态文件根目录是 dist 吗
    placeholder
    placeholder
    OP
    May 5, 2023
    2
    @hangbale 老哥厉害,一句指点就给我解决了
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   4823 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 02:25 · PVG 10:25 · LAX 18:25 · JFK 21:25
    ♥ Do have faith in what you're doing.