chore: run dev server with granian --reload for dev/prod parity
Replaces `python -m padelnomics.app` (Quart's built-in Hypercorn-based dev runner) with granian directly. Adds granian[reload] extra which pulls in watchfiles for file-change detection. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -10,7 +10,7 @@ dependencies = [
|
||||
"python-dotenv>=1.0.0",
|
||||
"itsdangerous>=2.1.0",
|
||||
"jinja2>=3.1.0",
|
||||
"granian>=1.6.0",
|
||||
"granian[reload]>=1.6.0",
|
||||
"paddle-python-sdk>=1.13.0",
|
||||
"mistune>=3.0.0",
|
||||
"resend>=2.22.0",
|
||||
|
||||
@@ -165,7 +165,7 @@ echo ""
|
||||
echo "Press Ctrl-C to stop all processes."
|
||||
echo ""
|
||||
|
||||
run_with_label "$COLOR_APP" "app " uv run python -u -m padelnomics.app
|
||||
run_with_label "$COLOR_APP" "app " uv run granian --interface asgi --host 127.0.0.1 --port 5000 --reload padelnomics.app:app
|
||||
run_with_label "$COLOR_WORKER" "worker" uv run python -u -m padelnomics.worker
|
||||
run_with_label "$COLOR_CSS" "css " make css-watch
|
||||
|
||||
|
||||
Reference in New Issue
Block a user