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,7 +1,7 @@
|
||||
# backend/Dockerfile
|
||||
FROM python:3.11-slim
|
||||
|
||||
RUN addgroup --system app && adduser --system --ingroup app app
|
||||
RUN addgroup --system app && adduser --system --ingroup app --home /home/app app
|
||||
|
||||
WORKDIR /srv/app
|
||||
|
||||
@@ -27,4 +27,4 @@ ENV GUNICORN_TIMEOUT=300
|
||||
|
||||
# Commande de démarrage via gunicorn (attache l'app Flask : app:app)
|
||||
# Utilise timeout raisonnable, bind sur 0.0.0.0:5000
|
||||
CMD ["sh","-c","gunicorn --workers ${GUNICORN_WORKERS} --threads ${GUNICORN_THREADS} --worker-class ${GUNICORN_WORKER_CLASS} --timeout ${GUNICORN_TIMEOUT} --bind 0.0.0.0:5000 --access-logfile - --error-logfile - 'main:create_app()'"]
|
||||
CMD ["sh","-c","gunicorn --workers ${GUNICORN_WORKERS} --threads ${GUNICORN_THREADS} --worker-class ${GUNICORN_WORKER_CLASS} --timeout ${GUNICORN_TIMEOUT} --worker-tmp-dir /dev/shm --bind 0.0.0.0:5000 --access-logfile - --error-logfile - 'main:create_app()'"]
|
||||
Reference in New Issue
Block a user