fix: Improve verify_deployment function with heredoc
All checks were successful
Build and Deploy LittleShop / Deploy to Production VPS (Manual Only) (push) Has been skipped
Build and Deploy LittleShop / Deploy to Pre-Production (CT109) (push) Successful in 1m1s

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
SysAdmin 2025-11-26 13:14:26 +00:00
parent 26e9004242
commit 4978b21913

View File

@ -171,7 +171,7 @@ deploy_telebot() {
verify_deployment() { verify_deployment() {
echo -e "${YELLOW}=== Verifying Deployment ===${NC}" echo -e "${YELLOW}=== Verifying Deployment ===${NC}"
ssh_sudo " sshpass -p "$ALEXHOST_PASS" ssh -o StrictHostKeyChecking=no "$ALEXHOST_USER@$ALEXHOST_IP" << 'VERIFY_EOF'
echo '' echo ''
echo 'Container Status:' echo 'Container Status:'
sudo docker ps --format 'table {{.Names}}\t{{.Status}}\t{{.Ports}}' | grep -E 'NAMES|teleshop|telebot' sudo docker ps --format 'table {{.Names}}\t{{.Status}}\t{{.Ports}}' | grep -E 'NAMES|teleshop|telebot'
@ -191,7 +191,7 @@ verify_deployment() {
else else
echo 'TeleBot: Not running' echo 'TeleBot: Not running'
fi fi
" VERIFY_EOF
} }
# Cleanup build directory # Cleanup build directory