mirror of
https://github.com/thecyberlearn/quantumtaskai-caprover.git
synced 2026-08-18 11:12:55 +00:00
Complete Django AI agent marketplace with security optimizations and clean deployment documentation without any API keys or secrets. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
39 lines
1.1 KiB
Bash
Executable File
39 lines
1.1 KiB
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
|
|
|
|
# Check for pending migrations
|
|
echo ""
|
|
echo "🔄 Checking for pending migrations..."
|
|
if python manage.py showmigrations --plan | grep -q '\[ \]'; then
|
|
echo "⚠️ Found pending migrations. Applying them..."
|
|
python manage.py migrate
|
|
echo "✅ Migrations applied successfully!"
|
|
else
|
|
echo "✅ All migrations up to date!"
|
|
fi
|
|
|
|
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 |