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

手残请教一个 netlify 静态网站子目录部署的问题

  •  
  •   matthewzhong · 2022-03-11 15:40:10 +08:00 · 973 次点击
    这是一个创建于 748 天前的主题,其中的信息可能已经有所发展或是发生改变。

    有个小网站目录结构很简单:

    ├─ dist

    ├─ src

    ├─ webpack.config.js

    ├─ package-lock.json

    ├─ package.json

    想要部署 dist 的内容,查了下 netlify 的文档。

    https://docs.netlify.com/configure-builds/common-configurations/ https://docs.netlify.com/configure-builds/common-configurations/monorepos/

    If you work with a codebase that’s configured as a monorepo, you can build on Netlify. Our docs provide setup recommendations for building from a subdirectory or monorepo as well as information on controlling whether or not builds run using an ignore command.

    按文档设置如下:

    e20e7c623000612c3f21d017c8deb19a.png

    设置之后,build 总是被 canceled 。请大家帮忙看看

    873d25f8717fb0779f5a93317f886448.png

    matthewzhong
        1
    matthewzhong  
    OP
       2022-03-14 22:07:35 +08:00
    蠢哭,build command 置空就行,ignore 就是忽略的意思啊
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   952 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 21:12 · PVG 05:12 · LAX 14:12 · JFK 17:12
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.