Skip to content

Commit

Permalink
use gunicorn
Browse files Browse the repository at this point in the history
  • Loading branch information
delcroip committed Aug 24, 2023
1 parent a66279c commit e908028
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ COPY . /openimis-be
WORKDIR /openimis-be
ARG OPENIMIS_CONF_JSON
ENV OPENIMIS_CONF_JSON=${OPENIMIS_CONF_JSON}
RUN pip install -r requirements.txt
ENV SCHEDULER_AUTOSTART=True
RUN pip install -r requirements.txt && pip install gunicorn
RUN python modules-requirements.py openimis.json > modules-requirements.txt
RUN pip install -r modules-requirements.txt

Expand Down
2 changes: 1 addition & 1 deletion script/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ case "$1" in
python manage.py migrate
fi
echo "Starting Django..."
SCHEDULER_AUTOSTART=True python server.py
gunicorn -w 4 openIMIS.wsgi
;;
"start_asgi" )
echo "Starting Django ASGI..."
Expand Down

0 comments on commit e908028

Please sign in to comment.