update gunicorn

This commit is contained in:
Parsa Nazer
2025-03-02 16:28:59 +03:30
parent 582dfb13f9
commit 2a4a9a52c7
4 changed files with 8 additions and 3 deletions
+4 -1
View File
@@ -11,4 +11,7 @@ RUN pip install --no-cache-dir -r requirements.txt
COPY . /app/
CMD ["sh", "-c", "python manage.py makemigrations && python manage.py migrate && python manage.py collectstatic && python manage.py runserver 0.0.0.0:8000"]
CMD ["sh", "-c", "python manage.py makemigrations && \
python manage.py migrate && \
python manage.py collectstatic --no-input && \
gunicorn backend.wsgi:application --bind 0.0.0.0:8000 --workers 3"]