disable depricated migratecommand
This commit is contained in:
parent
71f7f2c7de
commit
b559ea4c9f
2 changed files with 6 additions and 6 deletions
|
@ -11,6 +11,8 @@ services:
|
||||||
- "./lb:/usr/local/etc/haproxy"
|
- "./lb:/usr/local/etc/haproxy"
|
||||||
depends_on:
|
depends_on:
|
||||||
- "certbot"
|
- "certbot"
|
||||||
|
- "flask"
|
||||||
|
- "osmtile"
|
||||||
restart: always
|
restart: always
|
||||||
networks:
|
networks:
|
||||||
- internal
|
- internal
|
||||||
|
|
|
@ -1,18 +1,16 @@
|
||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import subprocess, shlex
|
|
||||||
from forest import app, db, User
|
|
||||||
|
|
||||||
from flask.cli import FlaskGroup
|
from flask.cli import FlaskGroup
|
||||||
|
from forest import app, db, User
|
||||||
|
|
||||||
from flask_migrate import Migrate
|
from flask_migrate import Migrate
|
||||||
from flask_migrate import MigrateCommand
|
|
||||||
|
|
||||||
cli = FlaskGroup(app)
|
cli = FlaskGroup(app)
|
||||||
migrate = Migrate(app, db)
|
|
||||||
|
|
||||||
cli.add_command('db', MigrateCommand)
|
|
||||||
|
|
||||||
|
migrate = Migrate()
|
||||||
|
migrate.init_app(app, db)
|
||||||
|
|
||||||
@cli.command("create_db")
|
@cli.command("create_db")
|
||||||
def create_db():
|
def create_db():
|
||||||
|
|
Loading…
Reference in a new issue