From 0a451b14f23867ff8a2afbb40034cfb237e47f9b Mon Sep 17 00:00:00 2001 From: Mario Nachbaur Date: Sat, 11 Oct 2025 20:40:11 +0200 Subject: [PATCH] use gunicorn config file --- Makefile | 2 +- gunicorn.conf.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 gunicorn.conf.py diff --git a/Makefile b/Makefile index ecc3b02..a57cef4 100644 --- a/Makefile +++ b/Makefile @@ -7,4 +7,4 @@ debug: .PHONY: run run: - uv run -- dotenv run -- gunicorn -w 4 --bind ':$(PORT)' 'src.main:app' + uv run -- dotenv run -- gunicorn diff --git a/gunicorn.conf.py b/gunicorn.conf.py new file mode 100644 index 0000000..ad9a1fd --- /dev/null +++ b/gunicorn.conf.py @@ -0,0 +1,2 @@ +wsgi_app = "src.main:app" +workers = 4 -- 2.51.2