Fix Gunicorn import by renaming app.py to wsgi.py

This commit is contained in:
KV-Tube Deployer 2026-01-10 14:43:48 +07:00
parent 8277331098
commit 3bc8d40868
2 changed files with 2 additions and 2 deletions

View file

@ -18,7 +18,7 @@ COPY . .
# Environment variables # Environment variables
ENV PYTHONUNBUFFERED=1 ENV PYTHONUNBUFFERED=1
ENV FLASK_APP=app.py ENV FLASK_APP=wsgi.py
ENV FLASK_ENV=production ENV FLASK_ENV=production
# Create directories for data persistence # Create directories for data persistence
@ -28,4 +28,4 @@ RUN mkdir -p /app/videos /app/data
EXPOSE 5000 EXPOSE 5000
# Run with Gunicorn # 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"]

View file