Add example how to run the server programmatically with reload
Add an example of how to run the uvicorn with the reload option programmatically.
Anybody here?
yes
We'll check shortly. Thanks for the PR! 🙏
Well... You just made me noticed that we have a "Running programmatically" section on both pages on our documentation.

🤦♂️
Well... You just made me noticed that we have a "Running programmatically" section on both pages on our documentation.
So, should I add the same example to the second page?
I'll think about this, and get back here. The documentation structure may need some small changes.
I think I'm going to have to patch the docs before the release...
@SergeyTsaplin Why not the following?
if __name__ == "__main__":
uvicorn.run(
"main:app",
host="127.0.0.1",
port=8000,
log_level="info",
reload=True,
)