File tree 5 files changed +4
-12
lines changed
5 files changed +4
-12
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,6 @@ ENV HOME=/home/emeis
16
16
ENV PYTHONUNBUFFERED=1
17
17
ENV DJANGO_SETTINGS_MODULE emeis.settings
18
18
ENV APP_HOME=/app
19
- ENV UWSGI_INI /app/uwsgi.ini
20
19
21
20
ARG REQUIREMENTS=requirements-prod.txt
22
21
COPY requirements-base.txt requirements-prod.txt requirements-dev.txt $APP_HOME/
@@ -28,4 +27,4 @@ COPY . $APP_HOME
28
27
29
28
EXPOSE 8000
30
29
31
- CMD /bin/sh -c "wait-for-it.sh $DATABASE_HOST:${DATABASE_PORT:-5432} -- ./manage.py migrate && uwsgi "
30
+ CMD /bin/sh -c "wait-for-it.sh $DATABASE_HOST:${DATABASE_PORT:-5432} -- ./manage.py migrate && gunicorn --workers 10 --access-logfile - --limit-request-line 16384 --bind :8000 emeis.wsgi "
Original file line number Diff line number Diff line change 1
1
"""
2
- WSGI config for project_app2 project.
2
+ WSGI config for emeis project.
3
3
4
4
It exposes the WSGI callable as a module-level variable named ``application``.
5
5
Original file line number Diff line number Diff line change @@ -7,9 +7,9 @@ django-localized-fields==6.7
7
7
django-postgres-extra==2.0.8
8
8
djangorestframework==3.14.0
9
9
djangorestframework-jsonapi==6.1.0
10
+ gunicorn==23.0.0
10
11
mozilla-django-oidc==3.0.0
11
12
pyexcel==0.7.0
12
13
pyexcel-xlsx==0.6.0
13
14
requests==2.31.0
14
- uwsgi==2.0.23
15
15
openpyxl==3.0.10 # TODO: dependency of `pyexcel-xlsx` Remove as soon as https://github.com/pyexcel/pyexcel-xlsx/issues/52 is resolved.
Original file line number Diff line number Diff line change 44
44
"django-postgres-extra<3" ,
45
45
"djangorestframework>=3.12.4,<4" ,
46
46
"djangorestframework-jsonapi>=4.3.0,<=6.1.0" ,
47
+ "gunicorn~=23.0.0" ,
47
48
"mozilla-django-oidc<=3" ,
48
49
"pyexcel>0.6,<1" ,
49
50
"pyexcel-xlsx>=0.6.0,<1" ,
50
51
"psycopg2>=2.9,<3" ,
51
52
"requests<3" ,
52
- "uwsgi<3" ,
53
53
"openpyxl<4" ,
54
54
],
55
55
)
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments