Cleanup: remove unused code, add CI/CD workflow
Some checks failed
Deploy Backend / deploy (push) Failing after 2m30s
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:
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user