Skip to content

Commit

Permalink
Merge pull request #89 from codeforjapan/deploy
Browse files Browse the repository at this point in the history
Deploy
  • Loading branch information
yu23ki14 authored Aug 10, 2024
2 parents 16c7141 + 6b5e0be commit e0961ec
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
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", "-w", "1", "--bind", "0.0.0.0:10000"]
3 changes: 2 additions & 1 deletion api/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ dependencies = [
"pydantic",
"starlette",
"python-dotenv",
"uvicorn[standard]",
]

[project.urls]
Expand All @@ -56,13 +57,13 @@ dev=[
"types-python-dateutil",
"psycopg2-binary",
"factory_boy",
"uvicorn",
"polyfactory",
"httpx",
]
prod=[
"birdxplorer_common @ git+https://github.com/codeforjapan/BirdXplorer.git@main#subdirectory=common",
"psycopg2",
"gunicorn",
]

[tool.pytest.ini_options]
Expand Down

0 comments on commit e0961ec

Please sign in to comment.