Skip to content

Commit fb9528d

Browse files
committed
chore: 优化代码
1 parent c14f38c commit fb9528d

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ include-package-data = true
3434
where = ["src"]
3535

3636
[tool.setuptools.package-data]
37-
quark = ["web/**"]
37+
quark = ["web/**", "web/.gitkeep", "web/**/.gitkeep"]
3838

3939
[tool.uv]
4040
index-url = "https://mirrors.aliyun.com/pypi/simple"

src/quark/quark.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,4 +155,6 @@ def run(
155155
app = self
156156

157157
# 启动服务
158-
uvicorn.run(app=app, host=host, port=port, reload=reload)
158+
uvicorn.run(
159+
app=app, host=host or "127.0.0.1", port=port or 8000, reload=reload or False
160+
)

0 commit comments

Comments
 (0)