Beispiel #1
0
def main(argv):
    "threader main, start threadreader webapp"
    # open threadstore client
    ThreadStoreClient.open(**settings.THREADSTORE)
    # start threadreader webapp
    msg = 'Starting Threadreader on port %d...' % settings.APP.port
    log.info(msg)
    print(msg)
    application = tornado.web.Application(handlers, **settings.TORNADO)
    application.listen(settings.APP.port)
    tornado.ioloop.IOLoop.instance().start()
Beispiel #2
0
def build_test_db(argv):
    "init reader threadstore collections & build test feeds"
    tsc = ThreadStoreClient.open(**settings.THREADSTORE)
    tsc.init_reader_threadstore()
    tsc.build_test_db()
    tsc.close()
Beispiel #3
0
def init_reader_threadstore(argv):
    "init reader threadstore collections"
    tsc = ThreadStoreClient.open(**settings.THREADSTORE)
    tsc.init_reader_threadstore()
    tsc.close()