quantum-ai-v2/docs
Claude ffb429239d 🔒 Implement comprehensive deployment control system
- Create protected branch strategy: main (production) ← staging ← development
- Configure Railway deployment controls with environment-specific settings
- Add GitHub branch protection setup script with automated configuration
- Implement comprehensive deployment control documentation:
  - Complete deployment control guide with Railway configuration
  - Quick reference development workflow guide
  - Detailed deployment checklist for all phases
  - Pull request template with quality gates

🛡️ Safety Features:
- main branch: Protected, requires PR approval, auto-deploys to production
- staging branch: Optional pre-production testing environment
- development branch: Safe zone for all development work, no auto-deploy
- Emergency procedures: Hotfix and rollback processes documented

🚀 Workflow Benefits:
- Prevents accidental production deployments
- Maintains development velocity on safe branches
- Clear promotion path: development → staging → production
- Automated quality gates and approval processes

📋 Setup Instructions:
- Run ./scripts/setup_branch_protection.sh for GitHub protection
- Configure Railway to deploy only from designated branches
- Use DEVELOPMENT_WORKFLOW.md for daily development guide

Generated with Claude Code
Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-27 17:53:30 +05:30
..
deployment 🔒 Implement comprehensive deployment control system 2025-07-27 17:53:30 +05:30
development 🤖 Add specialized subagents and auto-documentation system 2025-07-27 17:47:37 +05:30
operations 📚 Organize documentation and create comprehensive domain change guide 2025-07-27 09:10:35 +05:30
README.md 🤖 Add specialized subagents and auto-documentation system 2025-07-27 17:47:37 +05:30

📚 Quantum Tasks AI Documentation

Welcome to the comprehensive documentation for Quantum Tasks AI - a Django-based AI agent marketplace platform.

🚀 Quick Start


📂 Documentation Structure

🛠️ Development

Documentation for local development and agent creation.

Document Description
Setup Guide Local development environment setup
Agent Creation Building new AI agents for the platform
Testing Guide Testing procedures and best practices
Auto-Documentation System Automated documentation update system

🚀 Deployment

Production deployment and configuration guides.

Document Description
Railway Deployment Complete Railway.app deployment guide
Domain Change Guide Step-by-step domain change instructions
Environment Variables Complete environment configuration reference

⚙️ Operations

System maintenance, troubleshooting, and operations.

Document Description
Database Management Database operations and maintenance
Troubleshooting Common issues and solutions
Maintenance System maintenance procedures

🏗️ Architecture Overview

Core Components:

  • 🌐 Django Application - Main web platform
  • 🗄️ PostgreSQL Database - User data and transactions
  • 🔄 Redis Cache - Session storage and performance
  • 🤖 AI Agents - Specialized AI tools for users
  • 💳 Stripe Integration - Payment processing
  • 📧 Email System - User notifications and verification

Agent Architecture:

  • API Agents - Direct API integration (e.g., Weather Reporter)
  • Webhook Agents - External N8N workflow processing (e.g., Data Analyzer)

📋 Essential Information

🔧 System Requirements

Development:

  • Python 3.8+
  • Django 5.2+
  • SQLite (default) or PostgreSQL
  • Redis (optional)

Production:

  • Railway.app account
  • PostgreSQL database
  • Redis cache
  • SMTP email service
  • Stripe account

🌍 Environment Types

Environment Database Cache Email Purpose
Local Dev SQLite Memory Console Development and testing
Railway Staging PostgreSQL Redis SMTP Pre-production testing
Railway Production PostgreSQL Redis SMTP Live application

🔗 Key URLs

Development:

  • Application: http://localhost:8000
  • Admin: http://localhost:8000/admin/
  • Health Check: http://localhost:8000/health/

Production:

  • Application: https://quantum-ai.up.railway.app
  • Admin: https://quantum-ai.up.railway.app/admin/
  • Health Check: https://quantum-ai.up.railway.app/health/

🚨 Emergency Procedures

Quick Fixes

Application Won't Start:

  1. Check Troubleshooting Guide
  2. Verify Environment Variables
  3. Test database connection: python manage.py check --database default

Domain Issues:

  1. Follow Domain Change Guide
  2. Update ALLOWED_HOSTS and CSRF_TRUSTED_ORIGINS
  3. Test with health check endpoint

Database Problems:

  1. See Database Management
  2. Check Railway PostgreSQL service status
  3. Verify DATABASE_URL environment variable

Support Commands

# Check system health
python manage.py check --deploy

# Test database connection
python manage.py check_db

# Create admin user
python manage.py check_admin

# Test email functionality
python manage.py shell
>>> from django.core.mail import send_mail
>>> send_mail('Test', 'Message', 'from@example.com', ['to@example.com'])

🔍 Finding Information

📖 By Task

What do you want to do? Go to
Set up local development Setup Guide
Deploy to production Railway Deployment
Change domain/URL Domain Change Guide
Configure environment Environment Variables
Create new AI agent Agent Creation
Fix database issues Database Management
Solve common problems Troubleshooting

📖 By Component

Component Documentation
Django App Setup Guide, Railway Deployment
Database Database Management, Environment Variables
AI Agents Agent Creation
Email System Environment Variables, Troubleshooting
Payments Environment Variables

🆘 Getting Help

Documentation Issues

  • 📝 Found outdated information? Check if there's a newer version
  • 🔍 Can't find what you need? Check the Troubleshooting Guide
  • 📧 Still stuck? Review error logs and environment configuration

Development Questions

Production Issues


📅 Documentation Updates

This documentation is updated regularly. Key sections:

  • Environment Variables - Updated with new integrations
  • Deployment Guides - Updated for new Railway features
  • Troubleshooting - Updated with new common issues
  • Agent Creation - Updated with new agent types

Last Major Update: December 2024
Current Version: Django 5.2, Python 3.8+, Railway.app deployment


🎯 Pro Tip: Bookmark this page and the Quick Start section for fast access to essential guides!