예제 #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()