Skip to content

Commit

Permalink
fix core.py
Browse files Browse the repository at this point in the history
  • Loading branch information
leasunhy committed Sep 19, 2015
1 parent 24038d4 commit 2de5c74
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from server import create_app
from gevent.wsgi import WSGIServer

# Change the host and port here
HOST = '0.0.0.0'
Expand All @@ -12,6 +13,7 @@

if __name__ == '__main__':
#app.run(**kwargs)
from gevent import monkey
monkey.patch_socket()
server = WSGIServer((HOST, PORT), app)
server.serve_forever()
Expand Down

0 comments on commit 2de5c74

Please sign in to comment.