|
@@ -21,6 +21,18 @@ def run(c, port=8080, host="127.0.0.1"):
|
|
},
|
|
},
|
|
)
|
|
)
|
|
|
|
|
|
|
|
+@task
|
|
|
|
+def migrate(c, port=8080, host="127.0.0.1"):
|
|
|
|
+ """Run migrations to update the database schema"""
|
|
|
|
+ c.run(
|
|
|
|
+ f"PYTHONPATH=$(pwd) poetry run python3 scripts/migrate.py",
|
|
|
|
+ env={
|
|
|
|
+ "FLASK_APP": "lament-configuration.py",
|
|
|
|
+ "LC_APP_PATH": f"http://{host}:{port}",
|
|
|
|
+ "LC_DB_PATH": f"test.db",
|
|
|
|
+ "LC_SECRET_KEY": f"TESTING_KEY",
|
|
|
|
+ },
|
|
|
|
+ )
|
|
|
|
|
|
@task
|
|
@task
|
|
def install(c):
|
|
def install(c):
|