feat: remove uvicorn
This commit is contained in:
parent
6e2477f430
commit
28f37ad963
4
main.py
4
main.py
@ -3,7 +3,6 @@ from fastapi import FastAPI, status
|
|||||||
from fastapi.staticfiles import StaticFiles
|
from fastapi.staticfiles import StaticFiles
|
||||||
from sqlmodel import ARRAY, Column, SQLModel, Field, Session, String, create_engine
|
from sqlmodel import ARRAY, Column, SQLModel, Field, Session, String, create_engine
|
||||||
from fastapi.middleware.cors import CORSMiddleware
|
from fastapi.middleware.cors import CORSMiddleware
|
||||||
import uvicorn
|
|
||||||
|
|
||||||
with open("db.secrets", "r") as f:
|
with open("db.secrets", "r") as f:
|
||||||
db_secrets = f.readline().strip()
|
db_secrets = f.readline().strip()
|
||||||
@ -45,6 +44,3 @@ def submit_chemistry(chemistry: Chemistry):
|
|||||||
|
|
||||||
|
|
||||||
app.mount("/", StaticFiles(directory="dist", html=True), name="site")
|
app.mount("/", StaticFiles(directory="dist", html=True), name="site")
|
||||||
|
|
||||||
# if __name__ == "__main__":
|
|
||||||
# uvicorn.run("main:app", workers=1, port=8000, host="0.0.0.0")
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user