Merge pull request #465 from phracek/more_outputs_correct_return_states
Add support for OpenShift 3
This commit is contained in:
parent
3402cd789a
commit
50eeefac49
23 changed files with 407 additions and 23 deletions
57
test/gunicorn-config-different-port-test-app/.gitignore
vendored
Normal file
57
test/gunicorn-config-different-port-test-app/.gitignore
vendored
Normal file
|
|
@ -0,0 +1,57 @@
|
|||
# Byte-compiled / optimized / DLL files
|
||||
__pycache__/
|
||||
*.py[cod]
|
||||
|
||||
# C extensions
|
||||
*.so
|
||||
|
||||
# Distribution / packaging
|
||||
.Python
|
||||
env/
|
||||
build/
|
||||
develop-eggs/
|
||||
dist/
|
||||
downloads/
|
||||
eggs/
|
||||
.eggs/
|
||||
lib/
|
||||
lib64/
|
||||
parts/
|
||||
sdist/
|
||||
var/
|
||||
*.egg-info/
|
||||
.installed.cfg
|
||||
*.egg
|
||||
|
||||
# PyInstaller
|
||||
# Usually these files are written by a python script from a template
|
||||
# before PyInstaller builds the exe, so as to inject date/other infos into it.
|
||||
*.manifest
|
||||
*.spec
|
||||
|
||||
# Installer logs
|
||||
pip-log.txt
|
||||
pip-delete-this-directory.txt
|
||||
|
||||
# Unit test / coverage reports
|
||||
htmlcov/
|
||||
.tox/
|
||||
.coverage
|
||||
.coverage.*
|
||||
.cache
|
||||
nosetests.xml
|
||||
coverage.xml
|
||||
*,cover
|
||||
|
||||
# Translations
|
||||
*.mo
|
||||
*.pot
|
||||
|
||||
# Django stuff:
|
||||
*.log
|
||||
|
||||
# Sphinx documentation
|
||||
docs/_build/
|
||||
|
||||
# PyBuilder
|
||||
target/
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
APP_MODULE=app:application
|
||||
APP_CONFIG=./gunicorn.conf.py
|
||||
4
test/gunicorn-config-different-port-test-app/app.py
Normal file
4
test/gunicorn-config-different-port-test-app/app.py
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
|
||||
def application(environ, start_response):
|
||||
start_response('200 OK', [('Content-Type','text/plain')])
|
||||
return [b"Hello from gunicorn WSGI application!"]
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
import multiprocessing
|
||||
|
||||
bind = "0.0.0.0:8085"
|
||||
workers = multiprocessing.cpu_count() * 2 + 1
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
gunicorn<20.0.0; python_version < '3.5'
|
||||
gunicorn>=20.0.0; python_version >= '3.5'
|
||||
Loading…
Add table
Add a link
Reference in a new issue