Skip to content

Commit

Permalink
changed gunicorn to daphne
Browse files Browse the repository at this point in the history
  • Loading branch information
shaheenhyderk committed Nov 3, 2023
1 parent 985afc2 commit 029e8b9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ FROM python:3.10-slim-buster
WORKDIR /app
ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONUNBUFFERED=1
RUN pip install gunicorn
RUN mkdir /var/log/mulearnbackend
RUN apt-get update -y && apt-get install -y default-libmysqlclient-dev python-dev && apt install build-essential -y
COPY ./requirements.txt .
Expand Down
2 changes: 1 addition & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/bin/bash
python manage.py collectstatic --noinput
gunicorn --bind 0.0.0.0:8000 mulearnbackend.wsgi
daphne -b 0.0.0.0 -p 8000 mulearnbackend.asgi:application

0 comments on commit 029e8b9

Please sign in to comment.