Esempio n. 1
0
    def before_run(self, io_loop):
        io_loop.run_sync(connect_redis("master"))
        io_loop.run_sync(connect_redis("slave"))

        app = WebApplication(route.get_routes(), autoreload=options.debug)
        app.listen(8000, "0.0.0.0")
        LOG.info("server started.")
Esempio n. 2
0
 def before_run(self, io_loop):
     app = WebApplication(route.get_routes(), autoreload=options.debug)
     app.listen(8000, "0.0.0.0")
     LOG.info("server started.")
Esempio n. 3
0
 def before_run(self, io_loop):
     io_loop.run_sync(CassandraConnector.instance('test').connect)
     app = WebApplication(route.get_routes(), autoreload=options.debug)
     app.listen(8000, "0.0.0.0")
     LOG.info("server started.")