Beispiel #1
0
def init(debug: bool = True, port: Optional[int] = None) -> None:
    """This method is only called when initializing the dev server.  uwsgi (prod) doesn't call this method"""
    APP.logger.setLevel(logging.INFO)  # pylint: disable=no-member,no-name-in-module
    APP.run(host='0.0.0.0', debug=debug, port=port)
def init(debug=True, port=None):
    """This method is only called when initializing the dev server.  uwsgi (prod) doesn't call this method"""
    APP.run(host='0.0.0.0', debug=debug, port=port)
Beispiel #3
0
def init():
    # This makes sure that the method decorators are called.
    import decksite.api as _  # pylint: disable=unused-import
    APP.config['SECRET_KEY'] = configuration.get('oauth2_client_secret')
    APP.run(host='0.0.0.0', debug=True)
Beispiel #4
0
def init(debug: bool = True, port: Optional[int] = None) -> None:
    """This method is only called when initializing the dev server.  uwsgi (prod) doesn't call this method"""
    APP.logger.setLevel(logging.INFO)  # pylint: disable=no-member,no-name-in-module
    APP.config[
        'SESSION_COOKIE_SECURE'] = False  # Allow cookies over HTTP when running locally.
    APP.run(host='0.0.0.0', debug=debug, port=port)