update gunicorn
This commit is contained in:
@@ -11,6 +11,6 @@ import os
|
||||
|
||||
from django.core.wsgi import get_wsgi_application
|
||||
|
||||
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'core.settings')
|
||||
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'core.settings.production')
|
||||
|
||||
application = get_wsgi_application()
|
||||
|
||||
+4
-1
@@ -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"]
|
||||
@@ -48,6 +48,7 @@ geoip2==4.8.0
|
||||
ghasedak_sms==1.0.3
|
||||
ghasedakpack==0.1.13
|
||||
gnupg==2.3.1
|
||||
gunicorn==23.0.0
|
||||
h11==0.14.0
|
||||
http_ece==1.2.1
|
||||
httpagentparser==1.9.5
|
||||
@@ -73,6 +74,7 @@ oauthlib==3.2.2
|
||||
odfpy==1.4.1
|
||||
openai==1.58.1
|
||||
openpyxl==3.1.2
|
||||
packaging==24.2
|
||||
pillow==10.4.0
|
||||
platformdirs==4.2.2
|
||||
propcache==0.2.0
|
||||
|
||||
+1
-1
@@ -24,7 +24,7 @@ services:
|
||||
[
|
||||
"sh",
|
||||
"-c",
|
||||
"python manage.py migrate && python manage.py collectstatic --no-input && python manage.py runserver 0.0.0.0:8000",
|
||||
"python manage.py migrate && python manage.py collectstatic --no-input && gunicorn backend.wsgi:application --bind 0.0.0.0:8000 --workers 10",
|
||||
]
|
||||
networks:
|
||||
- default
|
||||
|
||||
Reference in New Issue
Block a user