Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #122 from sandiegopython/davidfischer/switch-to-gu…
…nicorn

Switch to gunicorn
  • Loading branch information
davidfischer committed Apr 29, 2023
2 parents 8061709 + 086c6e4 commit 8af0c8d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions Dockerfile
Expand Up @@ -45,5 +45,4 @@ RUN date -u +'%Y-%m-%dT%H:%M:%SZ' > BUILD_DATE

EXPOSE 8000

# Increase the timeout since these PDFs take a long time to generate
CMD ["waitress-serve", "--port=8000", "config.wsgi:application"]
CMD ["gunicorn", "--timeout", "15", "--bind", ":8000", "--workers", "2", "--max-requests", "10000", "--max-requests-jitter", "100", "config.wsgi"]
2 changes: 1 addition & 1 deletion requirements/common.txt
Expand Up @@ -7,7 +7,7 @@ Django==3.2.18
pytz==2022.7.1

# A zero dependency WSGI server
waitress==2.1.2
gunicorn==20.1.0

# For connecting to various APIs (eg. Meetup.com)
requests==2.22.0
Expand Down

0 comments on commit 8af0c8d

Please sign in to comment.