quantum-ai-v3/run_dev.sh
Claude 056db5215b Add development tools and documentation for environment management
**Development Script:**
- Add run_dev.sh for clean development server startup
- Automatically unsets DATABASE_URL to prevent conflicts
- Shows database configuration before starting server
- Provides clear development workflow

**Development Guide:**
- Comprehensive development documentation
- Environment variable troubleshooting
- Database configuration options
- Common issues and solutions
- Development workflow best practices

**Fixes Environment Variable Conflicts:**
- Documents DATABASE_URL interference issue
- Provides permanent and temporary solutions
- Clear instructions for different development scenarios
- Troubleshooting guide for connection errors

**Developer Experience:**
- One-command development startup: ./run_dev.sh
- Clear documentation for all development scenarios
- Troubleshooting guide for common issues
- Environment management best practices

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-12 10:22:13 +05:30

28 lines
766 B
Bash
Executable File

#!/bin/bash
# Development server startup script
# Ensures clean environment for Django development
echo "🚀 Starting Django Development Server"
echo "======================================"
# Clear any DATABASE_URL that might interfere with local development
unset DATABASE_URL
# Activate virtual environment
echo "📦 Activating virtual environment..."
source venv/bin/activate
# Check database configuration
echo "🔍 Checking database configuration..."
python manage.py check_db
echo ""
echo "🌐 Starting Django server..."
echo "Visit: http://localhost:8000"
echo "Admin: http://localhost:8000/admin"
echo ""
echo "Press Ctrl+C to stop the server"
echo "======================================"
# Start the development server
python manage.py runserver