From e36e9fd0988012c1a3efc834d1ba80d2082ef59a Mon Sep 17 00:00:00 2001 From: Damien De Paoli Date: Mon, 12 Jun 2023 20:46:13 +1000 Subject: [PATCH] using --enable-stdio-inheritance for prod gunicorn too --- wrapper.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wrapper.sh b/wrapper.sh index de0875b..795aa9d 100755 --- a/wrapper.sh +++ b/wrapper.sh @@ -1,7 +1,7 @@ #!/bin/bash if [ "$FLASK_ENV" == "production" ]; then - gunicorn --bind=0.0.0.0:443 --workers=2 --threads=2 --certfile /etc/letsencrypt/live/book.depaoli.id.au/fullchain.pem --keyfile /etc/letsencrypt/live/book.depaoli.id.au/privkey.pem main:app --env FLASK_ENV="production" --error-logfile gunicorn.error.log --access-logfile gunicorn.log --capture-output + gunicorn --bind=0.0.0.0:443 --workers=2 --threads=2 --certfile /etc/letsencrypt/live/book.depaoli.id.au/fullchain.pem --keyfile /etc/letsencrypt/live/book.depaoli.id.au/privkey.pem main:app --env FLASK_ENV="production" --error-logfile gunicorn.error.log --access-logfile gunicorn.log --capture-output --enable-stdio-inheritance else cd /pybook_mapped_volume gunicorn --bind=0.0.0.0:5000 --workers=1 --threads=1 main:app --env FLASK_ENV="development" --error-logfile gunicorn.error.log --access-logfile gunicorn.log --capture-output --enable-stdio-inheritance --reload