From 20281e5e2ee3f7d7282620bffa208686c42575b1 Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Thu, 19 Feb 2015 07:39:00 +0100 Subject: Enable a remote upgrade on Heroku with Flask-migrate. --- manage.py | 17 +++++++++++++++++ requirements.txt | 3 +++ 2 files changed, 20 insertions(+) create mode 100644 manage.py 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 -- cgit