示例#1
0
def start(data_dir='/tmp', port=5000, debug=False, host_exec=None):
    signal.signal(signal.SIGUSR2, stack_trace_handler)

    BlockadeManager.set_data_dir(data_dir)
    if host_exec:
        BlockadeManager.set_host_exec(host_exec)
    app.debug = debug
    http_server = WSGIServer(('', port), app)
    http_server.serve_forever()
示例#2
0
def start(data_dir='/tmp', port=5000, debug=False):
    BlockadeManager.set_data_dir(data_dir)
    app.debug = debug
    http_server = WSGIServer(('', port), app)
    http_server.serve_forever()
示例#3
0
def start(data_dir='/tmp', port=5000, debug=False):
    BlockadeManager.set_data_dir(data_dir)
    app.debug = debug
    http_server = WSGIServer(('', port), app)
    http_server.serve_forever()