Пример #1
0
def start_app(args):
    print "Listening on: %s:%s" % (args.host, args.port)
    app = make_app()
    listener = app.get_listener()
    listener.listen(args.port)
    ioloop = tornado.ioloop.IOLoop.instance()
    tornado.autoreload.start(ioloop)
    ioloop.start()
Пример #2
0
def syncdb(args):
    app = make_app()
    app.db.syncdb(Base)