コード例 #1
0
ファイル: runner.py プロジェクト: madhuneal/dnachat
def run_dnachat(config_file='localconfig.py'):
    conf.load_from_file(config_file)
    patch_from_config(conf)
    init_logger(conf['CHAT_LOG_FILE_NAME'], conf['LOG_LEVEL'])
    from dnachat.server import ChatFactory
    reactor.listenTCP(conf.get('PORT', 9339), ChatFactory(conf['REDIS_HOST']))
    reactor.run()
コード例 #2
0
ファイル: runner.py プロジェクト: madhuneal/dnachat
def run_notisender(config_file='localconfig.py'):
    conf.load_from_file(config_file)
    patch_from_config(conf)
    init_logger(conf['NOTISENDER_LOG_FILE_NAME'], conf['LOG_LEVEL'])
    from dnachat.notiserver import NotificationSender
    NotificationSender().start()
コード例 #3
0
ファイル: runner.py プロジェクト: madhuneal/dnachat
def run_logger(config_file='localconfig.py'):
    conf.load_from_file(config_file)
    patch_from_config(conf)
    init_logger(conf['LOGGER_LOG_FILE_NAME'], conf['LOG_LEVEL'])
    from dnachat.logserver import LogServer
    LogServer().start()