File tree Expand file tree Collapse file tree 5 files changed +1805
-1666
lines changed
Expand file tree Collapse file tree 5 files changed +1805
-1666
lines changed Original file line number Diff line number Diff line change @@ -23,16 +23,16 @@ set -euo pipefail
2323# -----------------------------------------------------------------------------
2424
2525SEED_DB=${SEED_DB:- false}
26- APP_MODULE=${APP_MODULE:- app / main.py}
26+ APP_MODULE=${APP_MODULE:- src / main.py}
2727UV_CMD=${UV_CMD:- uv run}
2828
2929export PYTHONUNBUFFERED=1
3030export PYTHONPATH=.
3131
3232if [[ " $SEED_DB " == " true" ]]; then
3333 echo " Seeding the database..."
34- $UV_CMD app /cli.py init-db
35- $UV_CMD app /cli.py seed --with-model=True
34+ $UV_CMD src /cli.py init-db
35+ $UV_CMD src /cli.py seed --with-model=True
3636fi
3737
3838echo " Starting FastAPI server..."
Original file line number Diff line number Diff line change @@ -34,7 +34,12 @@ async def lifespan(_: FastAPI): # type: ignore # noqa: ANN201
3434 yield
3535
3636
37- app = FastAPI (lifespan = lifespan )
37+ app = FastAPI (
38+ lifespan = lifespan ,
39+ openapi_url = "/api/openapi.json" ,
40+ redoc_url = None ,
41+ docs_url = None ,
42+ )
3843app .include_router (project_router )
3944app .include_router (job_router )
4045app .include_router (media_router )
@@ -154,5 +159,5 @@ def format_location(loc: Sequence[str | int]) -> str:
154159
155160
156161if __name__ == "__main__" :
157- uvicorn_port = int (os .environ .get ("HTTP_SERVER_PORT" , "4999 " ))
162+ uvicorn_port = int (os .environ .get ("HTTP_SERVER_PORT" , "7860 " ))
158163 uvicorn .run ("main:app" , host = "0.0.0.0" , port = uvicorn_port ) # noqa: S104
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ npm run preview
3232
3333Use the following commands to test your changes.
3434
35- ```
35+ ``` bash
3636npm run format
3737npm run lint
3838npm run type-check
You can’t perform that action at this time.
0 commit comments