#!/usr/bin/env python
# encoding: utf-8
#
#  Licensed to the Apache Software Foundation (ASF) under one
#  or more contributor license agreements.  See the NOTICE file
#  distributed with this work for additional information
#  regarding copyright ownership.  The ASF licenses this file
#  to you under the Apache License, Version 2.0 (the
#  "License"); you may not use this file except in compliance
#  with the License.  You may obtain a copy of the License at
#
#    http://www.apache.org/licenses/LICENSE-2.0
#
#  Unless required by applicable law or agreed to in writing,
#  software distributed under the License is distributed on an
#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
#  KIND, either express or implied.  See the License for the
#  specific language governing permissions and limitations
#  under the License.
#

"""This module is used to launch EC2Stack.
"""

from werkzeug.serving import run_simple
from werkzeug.wsgi import DispatcherMiddleware

import ec2stack


def main():
    """
    Entry point for launching EC2Stack.
    """
    app = ec2stack.create_app()

    run_simple(
        app.config['EC2STACK_BIND_ADDRESS'],
        int(app.config['EC2STACK_PORT']),
        DispatcherMiddleware(app),
        use_reloader=True,
        use_debugger=True
    )


if __name__ == "__main__":
    main()
