This is an automated email from the ASF dual-hosted git repository.
garyw pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mnemonic-site.git
The following commit(s) were added to refs/heads/master by this push:
new d878a64 MNEMONIC-718
d878a64 is described below
commit d878a6407f70c4dfaf372d92501921caf94bab23
Author: Li Shen <[email protected]>
AuthorDate: Thu Apr 7 21:28:57 2022 -0700
MNEMONIC-718
---
mnemonic-fastapi/app/main.py | 13 ++++++++++++-
1 file changed, 12 insertions(+), 1 deletion(-)
diff --git a/mnemonic-fastapi/app/main.py b/mnemonic-fastapi/app/main.py
index 6ac9272..f5c4a81 100644
--- a/mnemonic-fastapi/app/main.py
+++ b/mnemonic-fastapi/app/main.py
@@ -30,4 +30,15 @@ async def mnemonic_docs(request: Request):
data = {
"page": "docs"
}
- return templates.TemplateResponse("page.html", {"request": request,
"data": data})
\ No newline at end of file
+ return templates.TemplateResponse("page.html", {"request": request,
"data": data})
+
+if __name__ == "__main__":
+ from uvicorn import Config, Server
+ server = Server(
+ Config(
+ app,
+ host="0.0.0.0",
+ port=443,
+ )
+ )
+ server.run()
\ No newline at end of file