mirror of
https://gitlab.com/SIGBUS/nyaa.git
synced 2024-12-23 00:39:59 +00:00
14 lines
288 B
Python
14 lines
288 B
Python
|
#!/usr/bin/python3
|
||
|
# -*- coding: utf-8 -*-
|
||
|
from nyaa import app, db
|
||
|
from flask_script import Manager
|
||
|
from flask_migrate import Migrate, MigrateCommand
|
||
|
|
||
|
migrate = Migrate(app, db)
|
||
|
|
||
|
manager = Manager(app)
|
||
|
manager.add_command("db", MigrateCommand)
|
||
|
|
||
|
if __name__ == "__main__":
|
||
|
manager.run()
|