Пример #1
0
def main():
    """
    Main     start
    :option: -c "conf path"
    """

    from exts.copy_setttings import set_setting_obj
    set_setting_obj()
    from app import settings_init
    print("Link:{}:{}".format(settings_init.SITE_HOST,settings_init.SITE_PORT))
    # start app
    application.listen(settings_init.SITE_PORT)
    tornado.ioloop.IOLoop.instance().start()
Пример #2
0
def main():
    set_setting_obj()
    create_init_data(ENGINE)