from flask_script import Manager
from app import create_app

app = create_app()
manager = Manager(app)

# @manager.command
# def run():
#     app.run(debug=True)

@manager.command
def dev():
    from livereload import Server
    liveServer = Server(app.wsgi_app)
    liveServer.watch("**/*.*")
    liveServer.serve(open_url=True)

@manager.command
def test():
    pass

@manager.command
def deploy():
    pass

if __name__ == '__main__':
    # manager.run()
    app.run(debug=True)