fix: fix aio sandbox shutdown bug

This commit is contained in:
hetaoBackend
2026-01-30 21:58:43 +08:00
parent 697f094ba9
commit 733c020c58
11 changed files with 1271 additions and 4 deletions

View File

@@ -110,6 +110,7 @@ dev:
@-nginx -c $(PWD)/docker/nginx/nginx.local.conf -p $(PWD) -s quit 2>/dev/null || true
@sleep 1
@-pkill -9 nginx 2>/dev/null || true
@-docker ps -q --filter "name=deer-flow-sandbox" | xargs -r docker stop 2>/dev/null || true
@sleep 1
@echo ""
@echo "=========================================="
@@ -130,6 +131,8 @@ dev:
nginx -c $(PWD)/docker/nginx/nginx.local.conf -p $(PWD) -s quit 2>/dev/null || true; \
sleep 1; \
pkill -9 nginx 2>/dev/null || true; \
echo "Cleaning up sandbox containers..."; \
docker ps -q --filter "name=deer-flow-sandbox" | xargs -r docker stop 2>/dev/null || true; \
echo "✓ All services stopped"; \
exit 0; \
}; \
@@ -179,6 +182,8 @@ stop:
@-nginx -c $(PWD)/docker/nginx/nginx.local.conf -p $(PWD) -s quit 2>/dev/null || true
@sleep 1
@-pkill -9 nginx 2>/dev/null || true
@echo "Cleaning up sandbox containers..."
@-docker ps -q --filter "name=deer-flow-sandbox" | xargs -r docker stop 2>/dev/null || true
@echo "✓ All services stopped"
# Clean up