diff --git a/deploy.sh b/deploy.sh index 492138d..3cce5f8 100755 --- a/deploy.sh +++ b/deploy.sh @@ -42,7 +42,12 @@ $COMPOSE --profile "$TARGET" run --rm "${TARGET}-app" \ echo "==> Starting $TARGET (waiting for health check)..." if ! $COMPOSE --profile "$TARGET" up -d --wait; then echo "!!! Health check failed — dumping logs" - $COMPOSE logs --tail=100 2>&1 || true + echo "--- ${TARGET}-app logs ---" + $COMPOSE logs --tail=60 "${TARGET}-app" 2>&1 || true + echo "--- router logs ---" + $COMPOSE logs --tail=10 router 2>&1 || true + echo "--- litestream logs ---" + $COMPOSE logs --tail=10 litestream 2>&1 || true echo "!!! Rolling back" $COMPOSE stop "${TARGET}-app" "${TARGET}-worker" "${TARGET}-scheduler" LATEST=$($COMPOSE run --rm --entrypoint "" "${TARGET}-app" \ diff --git a/docker-compose.prod.yml b/docker-compose.prod.yml index 222b4cd..ada76a7 100644 --- a/docker-compose.prod.yml +++ b/docker-compose.prod.yml @@ -18,7 +18,7 @@ services: start_period: 10s litestream: - image: litestream/litestream:v0.5.8 + image: litestream/litestream:latest restart: unless-stopped # Auto-restore from R2 if DB file is missing, then start continuous replication. # Handles: new server, deleted volume, disaster recovery.