haldis/populate-db.sh

10 lines
258 B
Bash
Raw Normal View History

#!/usr/bin/env bash
2020-06-21 22:02:25 +02:00
set -euo pipefail
2019-04-04 18:27:50 +02:00
cd "$(dirname "$0")/app"
2022-04-19 21:31:40 +02:00
2022-04-19 20:40:06 +02:00
env python create_database.py setup_database
latest_revision=$(env python app.py db heads | sed "s/ (head)$//")
echo Stamping db at $latest_revision
env python app.py db stamp $latest_revision