bjoern@0: # -*- coding: utf-8 -*- bjoern@0: if __name__ == "__main__": bjoern@37: from odfcast import app bjoern@69: bjoern@69: server_name = app.config['SERVER_NAME'] bjoern@69: if server_name and ':' in server_name: bjoern@69: host, port = server_name.rsplit(':', 1) bjoern@69: port = int(port) bjoern@69: else: bjoern@69: port = 5000 bjoern@69: host = "127.0.0.1" bjoern@69: bjoern@69: app.run(host=host, port=port)