mnemo_cards/tools/deploy/test-vscode-final.sh
2025-11-19 22:32:48 +03:00

38 lines
1.2 KiB
Bash
Executable file

#!/bin/bash
# Final test of VSCode Server
set -e
echo "🧪 Final test of VSCode Server availability..."
echo ""
echo "📊 Test 1: Testing vscode.mnemo-cards.online from local machine..."
if curl -I -L -m 10 https://vscode.mnemo-cards.online/ 2>&1 | head -15; then
echo "✅ vscode.mnemo-cards.online is accessible"
else
echo "⚠️ Could not reach vscode.mnemo-cards.online from local machine"
echo "This might be a firewall or DNS issue on your local network"
fi
echo ""
echo "📊 Test 2: Testing code.mnemo-cards.online (should be Forgejo, not VSCode)..."
if curl -I -L -m 10 https://code.mnemo-cards.online/ 2>&1 | head -15; then
echo "✅ code.mnemo-cards.online is accessible (this is Forgejo/Git)"
else
echo "⚠️ Could not reach code.mnemo-cards.online"
fi
echo ""
echo "📊 Test 3: Testing from server itself..."
ssh root@147.45.152.129 'curl -I https://vscode.mnemo-cards.online 2>&1 | head -10'
echo ""
echo "✅ Testing complete!"
echo ""
echo "📝 Summary:"
echo " - https://vscode.mnemo-cards.online/ → VSCode Server"
echo " - https://code.mnemo-cards.online/ → Forgejo (Git)"
echo ""
echo "🔑 VSCode password: AGktOidxrah1KVC0"