from flask_script import Manager
from flask import current_app
from app import create_app


def create_my_app():
    app = create_app()
    return app


APP = create_my_app()
manager = Manager(APP)


@manager.command
def run():
    port = int(current_app.config['PORT'])
    host = current_app.config['HOST']
    debug = current_app.config['DEBUG']
    current_app.run(host=host, port=port, debug=debug)


if __name__ == '__main__':
    manager.run()

b91de9a9162d81df20f4f433a29f9d8b42292095
<mask token>


@manager.command
def run():
    port = int(current_app.config['PORT'])
    host = current_app.config['HOST']
    debug = current_app.config['DEBUG']
    current_app.run(host=host, port=port, debug=debug)


<mask token>

<mask token>


def create_my_app():
    app = create_app()
    return app


<mask token>


@manager.command
def run():
    port = int(current_app.config['PORT'])
    host = current_app.config['HOST']
    debug = current_app.config['DEBUG']
    current_app.run(host=host, port=port, debug=debug)


<mask token>

<mask token>


def create_my_app():
    app = create_app()
    return app


<mask token>


@manager.command
def run():
    port = int(current_app.config['PORT'])
    host = current_app.config['HOST']
    debug = current_app.config['DEBUG']
    current_app.run(host=host, port=port, debug=debug)


if __name__ == '__main__':
    manager.run()

<mask token>


def create_my_app():
    app = create_app()
    return app


APP = create_my_app()
manager = Manager(APP)


@manager.command
def run():
    port = int(current_app.config['PORT'])
    host = current_app.config['HOST']
    debug = current_app.config['DEBUG']
    current_app.run(host=host, port=port, debug=debug)


if __name__ == '__main__':
    manager.run()

from flask_script import Manager
from flask import current_app
from app import create_app


def create_my_app():
    app = create_app()
    return app


APP = create_my_app()
manager = Manager(APP)


@manager.command
def run():
    port = int(current_app.config['PORT'])
    host = current_app.config['HOST']
    debug = current_app.config['DEBUG']
    current_app.run(host=host, port=port, debug=debug)


if __name__ == '__main__':
    manager.run()
