holsee / holsee/cherry

cherry serve --poll for Docker bind mounts

Open
#79 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
CSS
Stars
1
Forks
0
Avg merge
26m
Merged PRs (30d)
62

Description

Docker bind mounts from Windows/macOS hosts deliver no inotify events, so `cherry serve` in a container correctly degrades to no-live-reload (the probe catches the blind watcher). file_system ships a stat-polling backend that works fine across bind mounts — proven end-to-end during 0.2.0 development via the `:fs_watcher_start` seam.

Add `cherry serve --poll [--poll-interval MS]` wiring `FileSystem` `backend: :fs_poll`, so container users get real live reload with one flag. The probe should still run (poll delivers events, so it passes). Docs: a note in the CLI reference and the serve guide about when to reach for it.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start at the `cherry serve` CLI entry point and trace the existing watcher probe, including the `:fs_watcher_start` seam. Wire the `--poll` and `--poll-interval MS` options to the FileSystem `backend: :fs_poll`, confirm live reload works without disabling the probe, and update the CLI reference and serve guide.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker
Domain
cli, devops
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
70/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.