Skip to content

Commit a2ab57c

Browse files
leplatremBryan Sieber
andauthored
Run app as a single uvicorn process (fixes #133) (#162)
* Run app as a single uvicorn process (fixes #133) * Updating based off main branch changes Co-authored-by: Bryan Sieber <[email protected]>
1 parent c51e3eb commit a2ab57c

File tree

5 files changed

+2
-143
lines changed

5 files changed

+2
-143
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,4 @@ WORKDIR /app
4141
COPY . .
4242

4343
EXPOSE $PORT
44-
CMD ["gunicorn", "-k", "uvicorn.workers.UvicornWorker", "-c", "config/gunicorn_conf.py", "src.app.api:app"]
44+
CMD ["python", "-m", "asgi"]

config/gunicorn_conf.py

Lines changed: 0 additions & 78 deletions
This file was deleted.

poetry.lock

Lines changed: 1 addition & 19 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ python = ">=3.8, <3.11"
1010
fastapi = "^0.73.0"
1111
pydantic = {version = "^1.9.1", extras = ["dotenv", "email"]}
1212
uvicorn = {extras = ["standard"], version = "^0.18.2"}
13-
gunicorn = "^20.1.0"
1413
python-bugzilla = "^3.2.0"
1514
atlassian-python-api = "^3.25.0"
1615
dockerflow = "2022.7.0"

tests/unit/test_gunicorn_conf.py

Lines changed: 0 additions & 44 deletions
This file was deleted.

0 commit comments

Comments
 (0)