mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
Fix test app
This commit is contained in:
parent
5c5dbbd603
commit
f4f3429d15
8
test.py
8
test.py
@ -1,9 +1,4 @@
|
|||||||
|
|
||||||
from gunicorn.httpserver import WSGIServer
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
def app(environ, start_response):
|
def app(environ, start_response):
|
||||||
"""Simplest possible application object"""
|
"""Simplest possible application object"""
|
||||||
data = 'Hello, World!\n'
|
data = 'Hello, World!\n'
|
||||||
@ -15,6 +10,3 @@ def app(environ, start_response):
|
|||||||
start_response(status, response_headers)
|
start_response(status, response_headers)
|
||||||
return [data]
|
return [data]
|
||||||
|
|
||||||
if __name__ == '__main__':
|
|
||||||
server = WSGIServer(("127.0.0.1", 8000), 1, simple_app)
|
|
||||||
server.run()
|
|
||||||
Loading…
x
Reference in New Issue
Block a user