fix: package standalone app.server module and bump model-router-cli to 1.0.2
This commit is contained in:
@@ -4,6 +4,8 @@ from contextlib import asynccontextmanager
|
||||
from fastapi import FastAPI
|
||||
from fastapi.middleware.cors import CORSMiddleware
|
||||
from sse_starlette.sse import EventSourceResponse
|
||||
import uvicorn
|
||||
from app.server import app, settings
|
||||
|
||||
from app.config.settings import get_settings
|
||||
from app.storage.database import init_db, AsyncSessionLocal
|
||||
@@ -116,3 +118,4 @@ if __name__ == "__main__":
|
||||
import uvicorn
|
||||
uvicorn.run("main:app", host=settings.HOST, port=settings.PORT, reload=settings.DEBUG)
|
||||
|
||||
uvicorn.run("app.server:app", host=settings.HOST, port=settings.PORT, reload=settings.DEBUG)
|
||||
|
||||
Reference in New Issue
Block a user