mirror of
https://github.com/thecyberlearn/quantum-ai-v3.git
synced 2026-08-18 23:32:57 +00:00
- 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>
43 lines
1.4 KiB
Plaintext
43 lines
1.4 KiB
Plaintext
# Railway Environment Variables Template
|
|
# Copy this to Railway dashboard for environment-specific deployments
|
|
|
|
# Django Settings
|
|
DEBUG=False
|
|
SECRET_KEY=your-production-secret-key-here
|
|
ALLOWED_HOSTS=your-domain.railway.app,www.quantumtaskai.com
|
|
|
|
# Database
|
|
DATABASE_URL=postgresql://user:password@host:port/database
|
|
|
|
# Stripe Configuration
|
|
STRIPE_PUBLISHABLE_KEY=pk_live_your_publishable_key
|
|
STRIPE_SECRET_KEY=sk_live_your_secret_key
|
|
STRIPE_WEBHOOK_SECRET=whsec_your_webhook_secret
|
|
|
|
# Email Configuration
|
|
EMAIL_HOST=smtp.gmail.com
|
|
EMAIL_PORT=587
|
|
EMAIL_USE_TLS=True
|
|
EMAIL_HOST_USER=your-email@gmail.com
|
|
EMAIL_HOST_PASSWORD=your-app-password
|
|
|
|
# Admin Configuration
|
|
DJANGO_SUPERUSER_USERNAME=admin
|
|
DJANGO_SUPERUSER_EMAIL=admin@quantumtaskai.com
|
|
DJANGO_SUPERUSER_PASSWORD=your-secure-admin-password
|
|
|
|
# N8N Webhook URLs (Production)
|
|
N8N_WEBHOOK_DATA_ANALYZER=https://your-n8n-instance.com/webhook/data-analyzer
|
|
N8N_WEBHOOK_SOCIAL_ADS=https://your-n8n-instance.com/webhook/social-ads
|
|
N8N_WEBHOOK_JOB_POSTING=https://your-n8n-instance.com/webhook/job-posting
|
|
N8N_WEBHOOK_FIVE_WHYS=https://your-n8n-instance.com/webhook/five-whys
|
|
|
|
# Security Settings
|
|
SECURE_SSL_REDIRECT=True
|
|
SECURE_HSTS_SECONDS=31536000
|
|
SECURE_HSTS_INCLUDE_SUBDOMAINS=True
|
|
SECURE_FRAME_DENY=True
|
|
|
|
# Deployment Control
|
|
DEPLOYMENT_ENVIRONMENT=production # production, staging, development
|
|
BRANCH_NAME=main # Track which branch is deployed |