Full cleanup and fresh container start

This commit is contained in:
Hamza-Ayed
2026-04-17 00:29:51 +03:00
parent b9cdc94298
commit 59ff15b809

View File

@@ -57,7 +57,10 @@ ssh $SERVER_USER@$SERVER_IP << EOF
fi
if [ -f "docker-compose.yml" ]; then
echo "🏗️ Rebuilding production containers using \$DOCKER_CMD..."
echo "🧹 Cleaning up old containers and orphans..."
\$DOCKER_CMD down --remove-orphans || true
echo "🏗️ Rebuilding and starting production containers using \$DOCKER_CMD..."
\$DOCKER_CMD up -d --build
else
echo "❌ Error: docker-compose.yml not found!"