V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
matthewzhong

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

  •  
  •   matthewzhong · Mar 11, 2022 · 1519 views
    This topic created in 1518 days ago, the information mentioned may be changed or developed.

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

    ├─ 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
       Mar 14, 2022
    蠢哭,build command 置空就行,ignore 就是忽略的意思啊
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5517 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 42ms · UTC 07:24 · PVG 15:24 · LAX 00:24 · JFK 03:24
    ♥ Do have faith in what you're doing.