This commit is contained in:
alorig
2025-11-09 20:04:47 +05:00
parent 21f1b4d498
commit 19055ec20e
2 changed files with 34 additions and 6 deletions

22
restart-backend.sh Normal file
View File

@@ -0,0 +1,22 @@
#!/bin/bash
# Restart backend containers to pick up code changes
echo "🛑 Stopping backend containers..."
docker stop igny8_backend igny8_celery_worker igny8_celery_beat
echo "⏳ Waiting 3 seconds..."
sleep 3
echo "🚀 Starting backend containers..."
docker start igny8_backend igny8_celery_worker igny8_celery_beat
echo "⏳ Waiting 5 seconds for containers to initialize..."
sleep 5
echo "📋 Checking container status..."
docker ps --filter "name=igny8" --format " {{.Names}} | {{.Status}}"
echo ""
echo "📝 Checking backend logs for errors..."
docker logs igny8_backend --tail 20