def run_server(largs, lprogram): global args global program global static args = largs program = lprogram # web static moved to external file import qira_webstatic qira_webstatic.init(lprogram) print "****** starting WEB SERVER on %s:%d" % (qira_config.HOST, qira_config.WEB_PORT) threading.Thread(target=mwpoller).start() socketio.run(app, host=qira_config.HOST, port=qira_config.WEB_PORT, log=open("/dev/null", "w"))
def run_server(largs, lprogram): global args global program global static args = largs program = lprogram # web static moved to external file import qira_webstatic qira_webstatic.init(lprogram) print("****** starting WEB SERVER on %s:%d" % (qira_config.HOST, qira_config.WEB_PORT)) threading.Thread(target=mwpoller).start() try: socketio.run(app, host=qira_config.HOST, port=qira_config.WEB_PORT, log_output=False) except KeyboardInterrupt: print("*** User raised KeyboardInterrupt") exit()