Update from Github upstream repository

This commit is contained in:
Lumir Balhar 2020-07-16 06:46:13 +02:00
commit 62038007e4
16 changed files with 775 additions and 54 deletions

View file

@ -0,0 +1,2 @@
ENABLE_PIPENV=1
PIN_PIPENV_VERSION=2018.11.26

View file

@ -0,0 +1,22 @@
#!/bin/bash
echo "Testing PIN_PIPENV_VERSION (set in .s2i/environment) ..."
pipenv_version=`pipenv --version`
expected="pipenv, version 2018.11.26"
if [ "$pipenv_version" != "$expected" ]; then
echo "ERROR: pipenv version is different than expected."
echo "Expected: ${expected}"
echo "Actual: ${pipenv_version}"
exit 1
fi
# Test the uwsgi server
exec uwsgi \
--http-socket :8080 \
--die-on-term \
--master \
--single-interpreter \
--enable-threads \
--threads=5 \
--thunder-lock \
--module wsgi

View file

@ -0,0 +1,2 @@
uWSGI
Flask

View file

@ -0,0 +1,9 @@
from flask import Flask
application = Flask(__name__)
@application.route('/')
def hello():
return b'Hello World from uWSGI hosted WSGI application!'
if __name__ == '__main__':
application.run()