From 3bc8d408681221f763c8243c1c67f222be632750 Mon Sep 17 00:00:00 2001 From: KV-Tube Deployer Date: Sat, 10 Jan 2026 14:43:48 +0700 Subject: [PATCH] Fix Gunicorn import by renaming app.py to wsgi.py --- Dockerfile | 4 ++-- app.py => wsgi.py | 0 2 files changed, 2 insertions(+), 2 deletions(-) rename app.py => wsgi.py (100%) diff --git a/Dockerfile b/Dockerfile index 456161a..c625935 100644 --- a/Dockerfile +++ b/Dockerfile @@ -18,7 +18,7 @@ COPY . . # Environment variables ENV PYTHONUNBUFFERED=1 -ENV FLASK_APP=app.py +ENV FLASK_APP=wsgi.py ENV FLASK_ENV=production # Create directories for data persistence @@ -28,4 +28,4 @@ RUN mkdir -p /app/videos /app/data EXPOSE 5000 # Run with Gunicorn -CMD ["gunicorn", "--bind", "0.0.0.0:5000", "--workers", "4", "--threads", "2", "--timeout", "120", "app:app"] +CMD ["gunicorn", "--bind", "0.0.0.0:5000", "--workers", "4", "--threads", "2", "--timeout", "120", "wsgi:app"] diff --git a/app.py b/wsgi.py similarity index 100% rename from app.py rename to wsgi.py