move scripts to bin
This commit is contained in:
16
bin/test_server.py
Executable file
16
bin/test_server.py
Executable file
@@ -0,0 +1,16 @@
|
||||
#!/usr/bin/env python
|
||||
|
||||
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"
|
||||
Reference in New Issue
Block a user