# Hugo server -D doesn't show new posts consistently

**URL:** <https://discourse.gohugo.io/t/hugo-server-d-doesnt-show-new-posts-consistently/49266>\
**Category:** support\
**Tags:** v0-123-x\
**Created:** [April 11, 2024, 3:20am UTC](https://discourse.gohugo.io/t/hugo-server-d-doesnt-show-new-posts-consistently/49266 "2024-04-11T03:20:53Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![bediger4000](https://avatars.discourse-cdn.com/v4/letter/b/9d8465/32.png) [@bediger4000](https://discourse.gohugo.io/u/bediger4000)\
**Post date:** [April 11, 2024, 3:20am UTC](https://discourse.gohugo.io/t/hugo-server-d-doesnt-show-new-posts-consistently/49266/1 "2024-04-11T03:20:53Z")

</div>

Using Arch Linux `hugo v0.124.1+extended linux/amd64 BuildDate=unknown`, Mainroad theme (updated this morning).

I have hugo running as a server locally when I update my blog:

```auto
hugo server --watch \
        --buildDrafts \
        --debug --verbose --logLevel debug

```

When I create a new post with `hugo new content posts/new-post.md`,  
the hugo server doesn’t show the new post in the front page list, or in “Recent Posts” or under the two default tags I have set, but only under the “Posts” menu bar (localhost:1313/posts/). I’m certain that posts created with `hugo new` used to show up almost immediately in my web browser, and in the “tags” pages.

If I have a (firefox) web browser with localhost:1313 loaded, I see the browser “flash” when I do the `hugo new content`, which I believe is the HTML re-loading from the local hugo server.

The xterm in which I have `hugo server` running says this:

```auto
DEBUG Received System Events: [CREATE "/home/bediger/nblog/content/posts/new-post.md" WRITE "/home/bediger/nblog/content/posts/new-post.md" WRITE "/home/bediger/nblog/content/posts/new-post.md" WRITE "/home/bediger/nblog/content/posts/new-post.md"]

Change detected, rebuilding site (#1).
2024-04-10 09:46:48.455 -0600
DEBUG cachebuster: Matching "content/posts/new-post.md" with source "(postcss|tailwind)\\.config\\.js": no match
DEBUG cachebuster: Matching "content/posts/new-post.md" with source "(postcss|tailwind)\\.config\\.js": no match
Source changed /posts/new-post.md
DEBUG 
INFO build: step process substep resolve page output change set changes 0 checked 0 matches 0 duration 495.254µs
INFO build: step process substep gc dynacache duration 1.492073ms
INFO build: step process substep collect files 1 files_total 1 duration 3.585445ms
INFO build: step process duration 6.350306ms
DEBUG Direct dependencies of "/posts" (*hugolib.pageState page-287) =>
          _internal/shortcodes/ref.html
          /
          _default/_markup/render-link.html

```

I’m not sure that’s important though.

I have tried creating a new site with `hugo new site`, populating it with the markdown files from my posts, and I get the same result.

I have gone through the `config.toml` file section by section, and nothing seems to affect the new-post-not-showing.

I have tried running `hugo server` with --renderToMemory and --disableFastRender flags, same result. Post created with `hugo new content posts/...` only shows up in localhost:1313/posts

---

<div class="post-metadata">

**Author:** ![jmooring](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/jmooring/32/4214_2.png) [@jmooring](https://discourse.gohugo.io/u/jmooring)\
**Post date:** [April 11, 2024, 3:29pm UTC](https://discourse.gohugo.io/t/hugo-server-d-doesnt-show-new-posts-consistently/49266/2 "2024-04-11T15:29:29Z")

</div>

I’ll look at this in the next couple of days, but for future reference you can replace this:

```plaintext
hugo server --watch --buildDrafts --debug --verbose --logLevel debug

```

with this:

```plaintext
hugo server --buildDrafts --logLevel debug

```

Why?

1. `--debug` has been deprecated, and you’re already specifying `--logLevel debug`.
2. `--verbose` has been deprecated, and you’re already specifying `--logLevel debug`.
3. Using `--watch` with `hugo server` is superfluous. That’s what `hugo server` does by default… it watches.

---

<div class="post-metadata">

**Author:** ![jmooring](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/jmooring/32/4214_2.png) [@jmooring](https://discourse.gohugo.io/u/jmooring)\
**Post date:** [April 11, 2024, 4:26pm UTC](https://discourse.gohugo.io/t/hugo-server-d-doesnt-show-new-posts-consistently/49266/3 "2024-04-11T16:26:40Z")

</div>

This is a regression; see [https://github.com/gohugoio/hugo/issues/12362](https://github.com/gohugoio/hugo/issues/12362).

It was fixed in v0.125.0.

---

<div class="post-metadata">

**Author:** ![system](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/system/32/1_2.png) [@system](https://discourse.gohugo.io/u/system)\
**Post date:** [April 19, 2024, 2:16am UTC](https://discourse.gohugo.io/t/hugo-server-d-doesnt-show-new-posts-consistently/49266/4 "2024-04-19T02:16:40Z")

</div>

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.
