haldis/populate-db.sh

10 lines
258 B
Bash
Raw Normal View History

#!/usr/bin/env bash
2020-06-21 20:02:25 +00:00
set -euo pipefail
2019-04-04 16:27:50 +00:00
cd "$(dirname "$0")/app"
2022-04-19 19:31:40 +00:00
2022-04-19 18:40:06 +00: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