Fix watch.sh: run uv sync + db migrations on startup

This commit is contained in:
Jarvis Prime
2026-03-04 04:43:19 +00:00
parent f077398c5d
commit 357f4905ed

View File

@@ -50,7 +50,14 @@ echo "[watch] Developer Intelligence POC — File Watcher"
echo "[watch] Polling every ${POLL_INTERVAL}s for new commits..." echo "[watch] Polling every ${POLL_INTERVAL}s for new commits..."
echo "" echo ""
# Initial setup # Initial setup — always sync deps on start
echo "[watch] Syncing dependencies..."
uv sync
# Run db migrations
echo "[watch] Running db migrations..."
uv run python -c "from db import init_db; init_db()"
LAST_HASH=$(get_local_hash) LAST_HASH=$(get_local_hash)
LAST_REQS=$(md5sum requirements.txt pyproject.toml 2>/dev/null || echo "none") LAST_REQS=$(md5sum requirements.txt pyproject.toml 2>/dev/null || echo "none")