OpenShift Deployment Preparations
This commit is contained in:
parent
0b612d2ed1
commit
1af6f30239
4 changed files with 14 additions and 0 deletions
3
.s2i/environment
Normal file
3
.s2i/environment
Normal 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
7
gunicorn.cfg
Normal 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
|
||||
|
|
@ -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
1
wsgi.py
Normal file
|
|
@ -0,0 +1 @@
|
|||
from blockerbugs import app as application
|
||||
Loading…
Add table
Add a link
Reference in a new issue