#NEWLINE# def main( ) : #NEWLINE# #INDENT# config . init_logging ( ) #NEWLINE# if ( config . OPEN_FALCON and config . OPEN_FALCON [ 'host_query' ] ) : #NEWLINE# #INDENT# stats . init ( ** config . OPEN_FALCON ) #NEWLINE# #UNINDENT# import handlers #NEWLINE# app = handlers . base . app #NEWLINE# app . config [ 'SQLALCHEMY_DATABASE_URI' ] = config . SQLALCHEMY_DATABASE_URI #NEWLINE# models . base . init_db ( app ) #NEWLINE# import file_ipc #NEWLINE# file_ipc . write_nodes_proxies_from_db ( ) #NEWLINE# debug = ( config . DEBUG == 1 ) #NEWLINE# app . debug = app #NEWLINE# app . run ( host = ( '127.0.0.1' if debug else '0.0.0.0' ) , port = config . SERVER_PORT )