diff options
author | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2015-02-19 07:39:00 +0100 |
---|---|---|
committer | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2015-02-19 07:39:00 +0100 |
commit | 20281e5e2ee3f7d7282620bffa208686c42575b1 (patch) | |
tree | a1677d104d711d53043f6d4038a4c5be61e14ae0 /manage.py | |
parent | Alembic is magic! (diff) | |
download | newspipe-20281e5e2ee3f7d7282620bffa208686c42575b1.tar.gz newspipe-20281e5e2ee3f7d7282620bffa208686c42575b1.tar.bz2 newspipe-20281e5e2ee3f7d7282620bffa208686c42575b1.zip |
Enable a remote upgrade on Heroku with Flask-migrate.
Diffstat (limited to 'manage.py')
-rw-r--r-- | manage.py | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/manage.py b/manage.py new file mode 100644 index 00000000..9a9b7291 --- /dev/null +++ b/manage.py @@ -0,0 +1,17 @@ +#! /usr/bin/env python +# -*- coding: utf-8 -*- + +import os +from flask.ext.script import Manager +from flask.ext.migrate import Migrate, MigrateCommand + +from pyaggr3g470r import app, db +#app.config.from_object(os.environ['APP_SETTINGS']) + +migrate = Migrate(app, db) +manager = Manager(app) + +manager.add_command('db', MigrateCommand) + +if __name__ == '__main__': + manager.run() |