fix: Improve verify_deployment function with heredoc
🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
26e9004242
commit
4978b21913
@ -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
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user