28 lines
705 B
Markdown
28 lines
705 B
Markdown
|
---
|
||
|
title: slod
|
||
|
subtitle: A tiny HTTP server for static files with live reloading
|
||
|
year: "2021"
|
||
|
labels:
|
||
|
repo: flupe/slod
|
||
|
license: GPLv3
|
||
|
---
|
||
|
|
||
|
> Warning: this is poorly implemented, and also doesn't have live-reloading yet
|
||
|
> Somehow I still use it daily, but you shouldn't, at all cost.
|
||
|
|
||
|
I grew tired of having to use `python -m http.server` every time I wanted to
|
||
|
serve static files locally --- that is, quite often --- so I implemented my own
|
||
|
tiny HTTP server in C.
|
||
|
|
||
|
- No dependencies
|
||
|
- Tiny
|
||
|
- Small
|
||
|
- Have I said it's tiny?
|
||
|
|
||
|
```raw
|
||
|
Usage: slod [options] [ROOT]
|
||
|
-h, --help Show this help message and quit.
|
||
|
-p, --port PORT Specify port to listen on.
|
||
|
-l, --live Enable livereload.
|
||
|
```
|