support uvicorn reload functionality (#1841)

* support uvicorn reload functionality
see:
https://github.com/encode/uvicorn/blob/8239373ec649b1a41179070b6ba2c8dc549df63e/uvicorn/main.py#L580-L582
* add docs for --reload

---------

Co-authored-by: dni  <office@dnilabs.com>
This commit is contained in:
jackstar12
2023-08-03 09:53:36 +02:00
committed by GitHub
co-authored by dni ⚡
parent 2577ce7f81
commit 772ae2a1ab
3 changed files with 27 additions and 1 deletions
+15
View File
@@ -12,6 +12,21 @@ For developers
Thanks for contributing :)
Run
=====
This starts the lnbits uvicorn server
```bash
poetry run lnbits
```
This starts the lnbits uvicorn with hot reloading.
```bash
make dev
# or
poetry run lnbits --reload
```
Precommit hooks
=====