#!/usr/bin/env python
import os
from migrate.versioning.shell import main

db_url = os.environ.get('DATABASE_URL', 'sqlite:///standup_app.db')
repo_path = os.path.dirname(os.path.abspath(__file__))
repository = os.path.join(repo_path, './migrations')

if __name__ == '__main__':
    main(url=db_url, repository=repository)

@@ -72,88 +72,35 @@
 in%0A%0A
-db_url = os.environ.get('DATABASE_URL', 'sqlite:///standup_app.db')%0Arepo_
+app_path = os.path.rel
 path
- = 
+(
 os.p
@@ -137,16 +137,107 @@
 file__))
+,%0A                           os.getcwd())%0Asqlite = os.path.join(app_path, 'standup_app.db')
 %0Areposit
@@ -259,20 +259,19 @@
 oin(
-repo
+app
 _path, '
 ./mi
@@ -270,10 +270,8 @@
 h, '
-./
 migr
@@ -278,16 +278,81 @@
 ations')
+%0Adb_url = os.environ.get('DATABASE_URL', 'sqlite:///%25s' %25 sqlite)
 %0A%0Aif __n
@@ -415,9 +415,8 @@
 ository)
-%0A

Fix paths in migrations.py