Files
mhapi/bin/test_server.py
2015-03-20 22:23:02 -05:00

19 lines
361 B
Python
Executable File

#!/usr/bin/env python
import _pathfix
from mhapi.web.wsgi import application
LISTEN_HOST = ""
LISTEN_PORT = 8080
if __name__ == '__main__':
import sys
from wsgiref.simple_server import make_server
httpd = make_server(LISTEN_HOST, LISTEN_PORT, application)
try:
httpd.serve_forever()
except KeyboardInterrupt:
print "^C"