Fix dev backend startup: use python -m uvicorn instead of uv run
uv pip install --system installs packages globally but uv run still tries to create /app/.venv, which fails with permission denied. Add PYTHONPATH=/app/src since the editable install .pth file is empty when built without source directory present.
This commit is contained in:
parent
2ddc08cd3a
commit
5f5e0da3c4
@ -11,7 +11,9 @@ services:
|
||||
- ./notebooks:/app/notebooks
|
||||
# Mount mcltspice for live development
|
||||
- ../mcp-ltspice/src/mcltspice:/app/mcltspice-lib:ro
|
||||
command: ["uv", "run", "uvicorn", "spicebook.main:app", "--host", "0.0.0.0", "--port", "8000", "--reload"]
|
||||
environment:
|
||||
- PYTHONPATH=/app/src
|
||||
command: ["python", "-m", "uvicorn", "spicebook.main:app", "--host", "0.0.0.0", "--port", "8000", "--reload"]
|
||||
networks:
|
||||
- default
|
||||
- caddy
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user