Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 11 lines (8 sloc) 288 Bytes
#!venv/bin/python
# coding: utf-8
from gevent.pywsgi import WSGIServer
from geventwebsocket.handler import WebSocketHandler
from app import my_app
if __name__ == '__main__':
http_server = WSGIServer(('',5000), my_app, handler_class=WebSocketHandler)
http_server.serve_forever()