Skip to content

Docker on Windows: auto-reload not working #340

@feitzi

Description

@feitzi

Context

I would like to try Zensical; however, the serve mode isn't working.
No live preview of changes with serve.

Version

Current version of the image is 0.0.21

Problem

When running the Zensical documentation site via Docker, content changes in Markdown files are not reflected in the browser. The site keeps showing the old content until the container is restarted.

Steps to reproduce

  1. Initialize a new project:
    docker run --rm -it -p 8000:8000 -v .:/docs zensical/zensical new
  2. Start the server:
    docker run --rm -it -p 8000:8000 -v .:/docs zensical/zensical
  3. Open a browser and navigate to http://localhost:8000 to verify the site is running.
  4. Open the project directory and edit content in index.md or markdown.md.
  5. Reload the page in the browser.

Expected behavior

After saving changes to index.md / markdown.md, reloading the page should show the updated content (live reload or at least a rebuild triggered by file changes).

Actual behavior

Changes are not visible after reload; the browser continues to show the previous content. Only restarting the container causes the content to rebuild and updates to appear.
_

Browser

Chrome

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIssue reports a bugresolvedIssue is resolved, yet unreleased if open

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions