Add standalone server to rest api server

This commit is contained in:
Arti Zirk 2016-11-01 23:15:26 +02:00
parent 0702fc7580
commit eadbc2496e

View File

@ -1 +1,8 @@
from karumedia import application
if __name__ == "__main__":
from wsgiref.simple_server import make_server
httpd = make_server('0.0.0.0', 8080, application)
print("Serving on http://0.0.0.0:8080/")
httpd.serve_forever()