Пример #1
0
# 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)
Пример #2
0
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)
Пример #3
0
# 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)