Initial commit
This commit is contained in:
parent
c785944bae
commit
f3b692ea5b
34 changed files with 1449 additions and 0 deletions
11
test/uwsgi-test-app/app.sh
Executable file
11
test/uwsgi-test-app/app.sh
Executable file
|
|
@ -0,0 +1,11 @@
|
|||
#!/bin/bash
|
||||
|
||||
exec uwsgi \
|
||||
--http-socket :8080 \
|
||||
--die-on-term \
|
||||
--master \
|
||||
--single-interpreter \
|
||||
--enable-threads \
|
||||
--threads=5 \
|
||||
--thunder-lock \
|
||||
--module wsgi
|
||||
2
test/uwsgi-test-app/requirements.txt
Normal file
2
test/uwsgi-test-app/requirements.txt
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
uWSGI
|
||||
Flask
|
||||
9
test/uwsgi-test-app/wsgi.py
Normal file
9
test/uwsgi-test-app/wsgi.py
Normal 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()
|
||||
Loading…
Add table
Add a link
Reference in a new issue