Cleanup: remove unused code, add CI/CD workflow
Some checks failed
Deploy Backend / deploy (push) Failing after 2m30s

- Remove flask-sse, Redis (unused)
- Remove ImageService, file_utils (unused)
- Remove /download-posters route (frontend handles download client-side)
- Remove LETTERBOXD_API_URL, secure_filename (dead imports)
- Fix duplicate TMDBService instantiation
- Simplify config.py (remove REDIS_URL)
- Fix gunicorn user home dir for control socket
- Add .gitignore for __pycache__
- Add .gitea/workflows/deploy.yml for tag-based CI/CD
This commit is contained in:
2026-04-26 17:25:21 +02:00
parent 8941057f0e
commit 4af947b440
12 changed files with 145 additions and 157 deletions

View File

@@ -1,21 +1,14 @@
import os
class Config:
# Configuration générale
SECRET_KEY = os.environ.get('SECRET_KEY', 'dev_key')
DEBUG = False
TESTING = False
REDIS_URL = os.environ.get("REDIS_URL", "redis://localhost:6379")
class DevelopmentConfig(Config):
DEBUG = True
# Configuration pour le développement local
REDIS_URL = "redis://localhost:6379"
class ProductionConfig(Config):
# Configuration pour la production (Render, etc.)
REDIS_URL = os.environ.get("REDIS_URL")
# Peut désactiver le debug mode pour la prod
DEBUG = False
config = {