OpenShift Deployment Preparations

This commit is contained in:
František Zatloukal 2021-11-02 16:01:11 +01:00
commit 1af6f30239
4 changed files with 14 additions and 0 deletions

3
.s2i/environment Normal file
View file

@ -0,0 +1,3 @@
UPGRADE_PIP_TO_LATEST=1
APP_CONFIG=/opt/app-root/src/gunicorn.cfg
WEB_CONCURRENCY=1

7
gunicorn.cfg Normal file
View file

@ -0,0 +1,7 @@
import logging
import sys
gunicorn_logger = logging.getLogger('gunicorn.error')
gunicorn_logger.addHandler(logging.StreamHandler(sys.stdout))
timeout = 120
graceful_timeout = 120

View file

@ -29,3 +29,6 @@ WTForms
# this is not a direct dependency, but a workaround for https://github.com/psf/requests/issues/5710
idna == 2.10
# openshift deployment dependency
gunicorn == 20.1.0

1
wsgi.py Normal file
View file

@ -0,0 +1 @@
from blockerbugs import app as application