Tiny live-reload HTTP development server
- C 83%
- Makefile 8.6%
- Nix 5.1%
- HTML 3.3%
| doc | ||
| .gitattributes | ||
| .gitignore | ||
| flake.lock | ||
| flake.nix | ||
| fragment.html | ||
| LICENSE | ||
| live-server.c | ||
| Makefile | ||
| mongoose.c | ||
| mongoose.h | ||
| README.md | ||
live-server
Minimal live-reload HTTP server
Ideas
- optionally follow gitignore
- option to attempt to reconnect after server shutdown
- alternate option to keeping track of watches: re-scan entire tree every time, depending on how slow that is. inotify will deal with duplicates.
Building
$ make
Portability
I'm targeting C23 + POSIX.1-2008 + inotify (and maybe kqueue one day).