chore: update Makefile to add env file

This commit is contained in:
tao.chen
2026-07-31 12:22:28 +08:00
parent d63c66f5ee
commit 2ff23acb6d
3 changed files with 30 additions and 44 deletions
+3 -5
View File
@@ -4,16 +4,14 @@ sync:
uv sync --all-packages
backend:
uv run --package backend uvicorn backend.main:app --host 0.0.0.0 --port 8010 --reload
uv run --package backend --env-file .env uvicorn backend.main:app --host 0.0.0.0 --port 8010 --reload
runtime:
uv run --package runtime uvicorn runtime.main:app --host 0.0.0.0 --port 8012 --reload
uv run --package runtime --env-file .env uvicorn runtime.main:app --host 0.0.0.0 --port 8012 --reload
schedule:
uv run --package schedule uvicorn schedule.main:app --host 0.0.0.0 --port 8013 --reload
uv run --package schedule --env-file .env uvicorn schedule.main:app --host 0.0.0.0 --port 8013 --reload
migrate:
uv run --package backend alembic upgrade head
up:
docker compose up -d --build