Skip to content

Commit

Permalink
gunicorn
Browse files Browse the repository at this point in the history
  • Loading branch information
yu23ki14 committed Aug 10, 2024
1 parent 1569e00 commit 2a0af34
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion api/Dockerfile.prd
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,4 @@ USER app
COPY --from=builder /usr/local/lib/python${PYTHON_VERSION_CODE}/site-packages /usr/local/lib/python${PYTHON_VERSION_CODE}/site-packages
COPY --chown=app:app . ./

ENTRYPOINT ["python", "-m", "uvicorn", "birdxplorer_api.main:app", "--host", "0.0.0.0", "--port", "10000"]
ENTRYPOINT ["python", "-m", "gunicorn", "birdxplorer_api.main:app", "-k", "uvicorn.workers.UvicornWorker", "--bind", "0.0.0.0", "--port", "10000"]
1 change: 1 addition & 0 deletions api/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ dev=[
]
prod=[
"psycopg2",
"gunicorn",
]

[tool.pytest.ini_options]
Expand Down

0 comments on commit 2a0af34

Please sign in to comment.