- Deleted .env.example file as it is no longer needed. - Added .gitignore to manage ignored files and directories. - Introduced CLAUDE.md for AI provider integration documentation. - Created dev.sh for development setup and scripts. - Updated Dockerfile and Dockerfile.production for improved build processes. - Added multiple test files and directories for comprehensive testing. - Introduced new utility and service files for enhanced functionality. - Organized codebase with new directories and files for better maintainability.
61 lines
1.9 KiB
Bash
Executable File
61 lines
1.9 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
# Development helper script for disbord
|
|
|
|
set -e
|
|
|
|
case "$1" in
|
|
"up")
|
|
echo "🚀 Starting full development environment..."
|
|
docker-compose --profile monitoring up --build
|
|
;;
|
|
"minimal")
|
|
echo "🔧 Starting minimal environment (core services only)..."
|
|
docker-compose up --build
|
|
;;
|
|
"logs")
|
|
echo "📋 Showing bot logs..."
|
|
docker-compose logs -f bot
|
|
;;
|
|
"shell")
|
|
echo "🐚 Opening bot container shell..."
|
|
docker-compose exec bot bash
|
|
;;
|
|
"test")
|
|
echo "🧪 Running tests..."
|
|
docker-compose exec bot python -m pytest
|
|
;;
|
|
"lint")
|
|
echo "🔍 Running linters..."
|
|
docker-compose exec bot bash -c "black . && ruff check . && pyright ."
|
|
;;
|
|
"down")
|
|
echo "⬇️ Stopping services..."
|
|
docker-compose --profile monitoring down
|
|
;;
|
|
"clean")
|
|
echo "🧹 Cleaning up containers and images..."
|
|
docker-compose --profile monitoring down --volumes --remove-orphans
|
|
docker system prune -f
|
|
;;
|
|
"rebuild")
|
|
echo "🔄 Rebuilding bot container..."
|
|
docker-compose build --no-cache bot
|
|
docker-compose up -d bot
|
|
;;
|
|
*)
|
|
echo "📖 Usage: $0 {up|minimal|logs|shell|test|lint|down|clean|rebuild}"
|
|
echo ""
|
|
echo "Commands:"
|
|
echo " up - Start full environment with monitoring"
|
|
echo " minimal - Start core services only (bot + databases)"
|
|
echo " logs - Show bot container logs"
|
|
echo " shell - Open bash shell in bot container"
|
|
echo " test - Run tests in bot container"
|
|
echo " lint - Run code quality checks"
|
|
echo " down - Stop all services"
|
|
echo " clean - Clean up containers and images"
|
|
echo " rebuild - Force rebuild bot container"
|
|
exit 1
|
|
;;
|
|
esac |