Fix watch.sh: run uv sync + db migrations on startup
This commit is contained in:
9
watch.sh
9
watch.sh
@@ -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")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user