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 | |
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.
-rw-r--r-- | manage.py | 17 | ||||
-rw-r--r-- | requirements.txt | 3 |
2 files changed, 20 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() diff --git a/requirements.txt b/requirements.txt index 11be3776..92849d30 100644 --- a/requirements.txt +++ b/requirements.txt @@ -18,3 +18,6 @@ WTForms python-postmark whoosh python-dateutil +alembic +flask-migrate +flask-script |