-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove Flask-Script manager from application.py
With built in Flask CLI this is no longer needed.
- Loading branch information
Showing
2 changed files
with
3 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,9 @@ | ||
#!/usr/bin/env python | ||
|
||
from __future__ import print_function | ||
|
||
import os | ||
|
||
from dmutils import init_manager | ||
from flask_migrate import Migrate, MigrateCommand | ||
from flask_migrate import Migrate | ||
|
||
from app import create_app, db | ||
|
||
|
||
application = create_app(os.getenv('DM_ENVIRONMENT') or 'development') | ||
manager = init_manager(application, 5000, ['./json_schemas']) | ||
|
||
application = create_app(os.getenv("DM_ENVIRONMENT") or "development") | ||
migrate = Migrate(application, db) | ||
manager.add_command('db', MigrateCommand) | ||
|
||
|
||
if __name__ == '__main__': | ||
manager.run() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters