# coding: utf-8 try: from simple import create_web app = create_web() except Exception, e: from chiki import start_error from simple.config import WebConfig start_error(config=WebConfig)
def web(debug=False, reloader=False, host='0.0.0.0', port=WebConfig.PORT): """ Run the web server. """ app = create_web() app.run(debug=debug, use_reloader=reloader, host=host, port=port)