提交 186a8d9c 编写于 作者: A Alan Greene 提交者: tekton-robot

Update netlify dev to avoid framework prompt

Update the dev section as recommended by `netlify dev` to avoid
the framework selection prompt on startup. Without this the command
hangs waiting for user input. See output from netlify CLI that
suggested the change:

```
$ netlify dev
◈ Netlify Dev ◈
◈ Injected netlify.toml file env var: HUGO_VERSION
◈ Ignored general context env var: LANG (defined in process)
◈ Ignored general context env var: LC_ALL (defined in process)
? Multiple possible start commands found Hugo-hugo server -w
Add 'framework = "hugo"' to the [dev] section of your netlify.toml to avoid this selection prompt next time
◈ Starting Netlify Dev with Hugo
hugo server \
        --baseURL http://localhost:8888/ \
        --buildDrafts \
        --buildFuture \
        --disableFastRender \
        --ignoreCache \
        --watch
```
上级 080e4a74
......@@ -17,6 +17,7 @@
[dev]
command = "make serve URL=http://localhost:8888/"
framework = "hugo"
[[plugins]]
package = "netlify-plugin-checklinks"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册