litestar-org/litestar-fullstack

Reloading logic is defined in `uvicorn.run()`

peterschutt opened this issue · 2 comments

I had the run-app entrypoint in starlite-saqlalchemy configured similar to this until I realised that calling server.run() sidesteps the reloading logic in uvicorn (here)

https://github.com/cofin/starlite-full-stack-example/blob/7259fc8711959b22b8faa5a676d3135458a7ae92/src/server/app/cli.py#L83-L84

So I moved back to calling uvicorn.run()(this commit).

cofin commented

Good to know this! I'll make the updates.

cofin commented

I've updated this in the latest code.