def run_server(host, port, app):
    def inner():
        httpd = make_server(host, port, app)
        httpd.serve_forever()
    if os.environ.get('BATPOD_RELOADER') != 'true':
        print " * Serving on port " + str(port) + "..."
    else:
        try:
            import thread
            thread.start_new_thread(inner, ())
            _reloader_loop()
        except __HOLE__:
            sys.exit(0)
    try:
        restart_with_reloader()
    except KeyboardInterrupt:
        sys.exit(0)
    sys.exit(0)
dataset/ETHPy150Open fengsp/batpod/exts/serving.py/run_server