#!/usr/bin/env python
from gevent.wsgi import WSGIServer
from werkzeug.serving import run_with_reloader
from qmk_bot import app


@run_with_reloader
def run_server():
    app.debug = True
    ws = WSGIServer(listener=('0.0.0.0', 5000), application=app)
    print ' * Listening on http://0.0.0.0:5000/'
    ws.serve_forever()


if __name__ == "__main__":
    run_server()
