From 357f4905edfe22ef250d34d74b87f33666276c81 Mon Sep 17 00:00:00 2001 From: Jarvis Prime Date: Wed, 4 Mar 2026 04:43:19 +0000 Subject: [PATCH] Fix watch.sh: run uv sync + db migrations on startup --- watch.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/watch.sh b/watch.sh index 81befd3..50e6571 100755 --- a/watch.sh +++ b/watch.sh @@ -50,7 +50,14 @@ echo "[watch] Developer Intelligence POC — File Watcher" echo "[watch] Polling every ${POLL_INTERVAL}s for new commits..." 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_REQS=$(md5sum requirements.txt pyproject.toml 2>/dev/null || echo "none")