add dev-mode
This commit is contained in:
parent
0803617e62
commit
31e1da937f
7 changed files with 146 additions and 51 deletions
10
README.md
10
README.md
|
|
@ -24,12 +24,22 @@ uv sync --all-groups
|
|||
uv run repub
|
||||
```
|
||||
|
||||
With no arguments, `uv run repub` starts the web UI in local dev mode and serves published feed files from `/feeds/...` out of `out/feeds/...`.
|
||||
|
||||
By default the UI listens on `127.0.0.1:8080`. You can override that with `REPUBLISHER_HOST` and `REPUBLISHER_PORT`, or with:
|
||||
|
||||
```sh
|
||||
uv run repub serve --host 0.0.0.0 --port 8080
|
||||
```
|
||||
|
||||
If you invoke the `serve` subcommand explicitly, use `--dev-mode` to expose published feeds directly from the Quart app:
|
||||
|
||||
```sh
|
||||
uv run repub serve --dev-mode
|
||||
```
|
||||
|
||||
In `--dev-mode`, requests under `/feeds/...` are served from `out/feeds/...`.
|
||||
|
||||
Important: the admin UI has no built-in authentication. Keep it bound to localhost or put it behind a trusted network layer such as Tailscale.
|
||||
|
||||
Once the UI is running:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue