Skip to content

Commit b772fd4

Browse files
committed
feat: add deployment command in makefile and add uvicorn for deployment
1 parent 888551e commit b772fd4

File tree

3 files changed

+31
-23
lines changed

3 files changed

+31
-23
lines changed

Makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,3 +177,8 @@ app-dev: ## Start the application - debug mode
177177
@$(PDM) run python -m src.setup
178178
@echo "=>Running application developer mode"
179179
@$(PDM) run litestar --app src.app:app run --debug --reload
180+
181+
.PHONE: app-prod
182+
app-prod:
183+
@echo "=>Running application with uvicorn"
184+
@$(PDM) run uvicorn src.app:app --host 0.0.0.0 --port 8000

pdm.lock

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

pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ analysis = [
3636
"slotscheck>=0.18.0",
3737
"pyright>=1.1.355",
3838
]
39+
deployment = [
40+
"uvicorn[standard]>=0.30.6",
41+
]
3942

4043
[tool.codespell]
4144
ignore-words-list = "selectin,UE,ue"

0 commit comments

Comments
 (0)