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()"