from flask_script import Manager, Server
from flask_migrate import Migrate, MigrateCommand

from app import create_app, db


application = create_app()

manager = Manager(application)
migrate = Migrate(application, db)
manager.add_command('db', MigrateCommand)

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