🎯 New Structure: - landing/ (root) - Only Makefile, .gitignore, .woodpecker.yml - helm/ - Kubernetes deployment (with argocd inside chart) - docker/ - Docker build configs - peikarband/ - All source code (src, tests, assets, config, tools, docs) ✅ Changes: - Moved Docker files: build/docker/ → docker/ - Moved Helm charts: deploy/helm/ → helm/ - Moved ArgoCD: deploy/argocd/ → helm/peikarband/argocd/ - Moved all source code to peikarband/ - Removed duplicate files (7 files) - Removed old empty directories 🐳 Docker Fixes: - Added npm retry configuration (fetch-retry-mintimeout, etc.) - Added 3-attempt retry mechanism for reflex export - Fixed ECONNREFUSED errors - Updated paths for new structure 📦 Config Updates: - Makefile: Updated all paths (docker/, helm/, peikarband/) - .woodpecker.yml: Updated dockerfile and context paths - .gitignore: Updated data/ path 🧪 Tests: - ✓ Helm lint passes - ✓ All paths validated - ✓ Structure verified 📊 Result: - Before: 20+ files in root, scattered structure - After: 3 files + 3 directories, clean and organized - Production-ready ✨
27 lines
817 B
Python
27 lines
817 B
Python
"""Reflex configuration file.
|
|
|
|
This file configures the Reflex application settings.
|
|
"""
|
|
|
|
import os
|
|
import reflex as rx
|
|
|
|
# Environment-aware configuration
|
|
API_URL = os.getenv("API_URL", "http://localhost:8000")
|
|
FRONTEND_PORT = int(os.getenv("FRONTEND_PORT", "3000"))
|
|
BACKEND_PORT = int(os.getenv("BACKEND_PORT", "8000"))
|
|
DB_URL = os.getenv("DATABASE_URL", "sqlite:///reflex.db")
|
|
|
|
config = rx.Config(
|
|
app_name="peikarband",
|
|
api_url=API_URL,
|
|
frontend_port=FRONTEND_PORT,
|
|
backend_port=BACKEND_PORT,
|
|
db_url=DB_URL,
|
|
disable_plugins=["reflex.plugins.sitemap.SitemapPlugin"],
|
|
stylesheets=[
|
|
"https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap",
|
|
"https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/Vazirmatn-font-face.css",
|
|
],
|
|
)
|