diff options
| author | Alexis Métaireau <alexis@notmyidea.org> | 2017-03-21 15:08:42 +0100 |
|---|---|---|
| committer | Alexis Métaireau <alexis@notmyidea.org> | 2017-03-28 17:41:34 +0200 |
| commit | d1facecc69e3a2638b508b4120094873cdb7bcf2 (patch) | |
| tree | 1bcd60ed8e58280a8cc18139473a9d5cddf83452 /budget/run.py | |
| parent | a354973f1f9c2dd602a4c28e90540fdbf4020064 (diff) | |
| download | ihatemoney-mirror-d1facecc69e3a2638b508b4120094873cdb7bcf2.zip ihatemoney-mirror-d1facecc69e3a2638b508b4120094873cdb7bcf2.tar.gz ihatemoney-mirror-d1facecc69e3a2638b508b4120094873cdb7bcf2.tar.bz2 | |
Create a Makefile to ease development
Diffstat (limited to 'budget/run.py')
| -rw-r--r-- | budget/run.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/budget/run.py b/budget/run.py index f006ae9..9745b60 100644 --- a/budget/run.py +++ b/budget/run.py @@ -1,4 +1,5 @@ import os +import os.path import warnings from flask import Flask, g, request, session @@ -11,6 +12,7 @@ from api import api from utils import PrefixedWSGI from utils import minimal_round +__HERE__ = os.path.dirname(os.path.abspath(__file__)) app = Flask(__name__) @@ -65,7 +67,7 @@ if pre_alembic_db(): # auto-execute migrations on runtime with app.app_context(): - upgrade() + upgrade(os.path.join(__HERE__, 'migrations')) # mail mail.init_app(app) |
