From 73904cd99ab3ebdb2e9ce0452901bf31831ddf8c Mon Sep 17 00:00:00 2001 From: Antoine Van Elstraete Date: Wed, 11 Mar 2026 16:43:31 +0100 Subject: [PATCH] feat: Gunicorn config and startup script --- gunicorn.conf.py | 5 +++++ start.sh | 4 ++++ 2 files changed, 9 insertions(+) create mode 100644 gunicorn.conf.py create mode 100755 start.sh diff --git a/gunicorn.conf.py b/gunicorn.conf.py new file mode 100644 index 0000000..206cd5d --- /dev/null +++ b/gunicorn.conf.py @@ -0,0 +1,5 @@ +bind = "127.0.0.1:5000" +workers = 2 +timeout = 30 +accesslog = "-" +errorlog = "-" diff --git a/start.sh b/start.sh new file mode 100755 index 0000000..6aa44a2 --- /dev/null +++ b/start.sh @@ -0,0 +1,4 @@ +#!/bin/bash +set -e +export SECRET_KEY="${SECRET_KEY:-changeme-in-production}" +exec .venv/bin/gunicorn -c gunicorn.conf.py "app:create_app()"