disable depricated migratecommand

This commit is contained in:
Daniel afx 2022-02-04 15:16:42 +00:00
parent 71f7f2c7de
commit b559ea4c9f
2 changed files with 6 additions and 6 deletions

View file

@ -11,6 +11,8 @@ services:
- "./lb:/usr/local/etc/haproxy"
depends_on:
- "certbot"
- "flask"
- "osmtile"
restart: always
networks:
- internal

View file

@ -1,18 +1,16 @@
#!/usr/bin/env python
import os
import subprocess, shlex
from forest import app, db, User
from flask.cli import FlaskGroup
from forest import app, db, User
from flask_migrate import Migrate
from flask_migrate import MigrateCommand
cli = FlaskGroup(app)
migrate = Migrate(app, db)
cli.add_command('db', MigrateCommand)
migrate = Migrate()
migrate.init_app(app, db)
@cli.command("create_db")
def create_db():