Fix Gunicorn import by renaming app.py to wsgi.py
This commit is contained in:
parent
8277331098
commit
3bc8d40868
2 changed files with 2 additions and 2 deletions
|
|
@ -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"]
|
||||
|
|
|
|||
Loading…
Reference in a new issue