docs: add DOCKER_GUIDE.md and fix .env parsing; chore: update docker and script configurations
This commit is contained in:
33
scripts/verify_files.sh
Normal file
33
scripts/verify_files.sh
Normal file
@ -0,0 +1,33 @@
|
||||
#!/bin/bash
|
||||
# BTC Bot Dashboard Setup Script
|
||||
# Run this from ~/btc_bot to verify all files exist
|
||||
|
||||
echo "=== BTC Bot File Verification ==="
|
||||
echo ""
|
||||
|
||||
FILES=(
|
||||
"src/api/server.py"
|
||||
"src/api/websocket_manager.py"
|
||||
"src/api/dashboard/static/index.html"
|
||||
"docker/Dockerfile.api"
|
||||
"docker/Dockerfile.collector"
|
||||
)
|
||||
|
||||
for file in "${FILES[@]}"; do
|
||||
if [ -f "$file" ]; then
|
||||
size=$(stat -f%z "$file" 2>/dev/null || stat -c%s "$file" 2>/dev/null || echo "unknown")
|
||||
echo "✓ $file (${size} bytes)"
|
||||
else
|
||||
echo "✗ $file (MISSING)"
|
||||
fi
|
||||
done
|
||||
|
||||
echo ""
|
||||
echo "=== Next Steps ==="
|
||||
echo "1. If all files exist, rebuild:"
|
||||
echo " cd ~/btc_bot"
|
||||
echo " docker build --network host --no-cache -f docker/Dockerfile.api -t btc_api ."
|
||||
echo " cd docker && docker-compose up -d"
|
||||
echo ""
|
||||
echo "2. Check logs:"
|
||||
echo " docker logs btc_api --tail 20"
|
||||
Reference in New Issue
Block a user