chore: Organize workspace structure - move docs, workflows, scripts to subdirectories
Organization: - Created docs/ with setup/, guides/, history/ subdirectories - Created workflows/ with trading/, analytics/, telegram/, archive/ subdirectories - Created scripts/ with docker/, setup/, testing/ subdirectories - Created tests/ for TypeScript test files - Created archive/ for unused reference files Moved files: - 17 documentation files → docs/ - 16 workflow JSON files → workflows/ - 10 shell scripts → scripts/ - 4 test files → tests/ - 5 unused files → archive/ Updated: - README.md with new file structure and documentation paths Deleted: - data/ (empty directory) - screenshots/ (empty directory) Critical files remain in root: - telegram_command_bot.py (active bot - used by Dockerfile) - watch-restart.sh (systemd service dependency) - All Dockerfiles and docker-compose files - All environment files Validation: Containers running (trading-bot-v4, telegram-trade-bot, postgres) API responding (positions endpoint tested) Telegram bot functional (/status command tested) All critical files present in root No code changes - purely organizational. System continues running without interruption. Recovery: git revert HEAD or git reset --hard cleanup-before
This commit is contained in:
43
scripts/docker/docker-start.sh
Executable file
43
scripts/docker/docker-start.sh
Executable file
@@ -0,0 +1,43 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Trading Bot v4 - Docker Start Script
|
||||
# Starts the trading bot in production mode
|
||||
|
||||
set -e
|
||||
|
||||
echo "🚀 Starting Trading Bot v4..."
|
||||
echo ""
|
||||
|
||||
# Navigate to v4 directory
|
||||
cd "$(dirname "$0")"
|
||||
|
||||
# Check if .env exists
|
||||
if [ ! -f ".env" ]; then
|
||||
echo "❌ Error: .env file not found!"
|
||||
echo " Run: cp .env.example .env"
|
||||
echo " Then edit .env with your credentials"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Check if image exists
|
||||
if ! docker images | grep -q "trading-bot"; then
|
||||
echo "📦 Image not found. Building..."
|
||||
./docker-build.sh
|
||||
fi
|
||||
|
||||
# Start services
|
||||
echo "🐳 Starting containers..."
|
||||
docker-compose up -d
|
||||
|
||||
echo ""
|
||||
echo "✅ Trading Bot started!"
|
||||
echo ""
|
||||
echo "Status:"
|
||||
docker-compose ps
|
||||
echo ""
|
||||
echo "View logs:"
|
||||
echo " docker-compose logs -f trading-bot"
|
||||
echo ""
|
||||
echo "Stop bot:"
|
||||
echo " docker-compose down"
|
||||
echo ""
|
||||
Reference in New Issue
Block a user