view main.py @ 86:6466501a963b

Activate debugging by default. The debugging is more or less a logging and essential when running odfcast in an operational environment.
author Frank Koormann <frank.koormann@intevation.de>
date Thu, 02 Apr 2015 15:58:40 +0200
parents dcf870775c26
children
line wrap: on
line source
# -*- coding: utf-8 -*-
if __name__ == "__main__":
    from odfcast import app

    server_name = app.config['SERVER_NAME']
    if server_name and ':' in server_name:
        host, port = server_name.rsplit(':', 1)
        port = int(port)
    else:
        port = 5000
        host = "127.0.0.1"

    app.run(host=host, port=port)
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)