Run the db migrations on container start unless we're running against Sqlite.

This commit is contained in:
Jake Moshenko 2014-05-13 15:20:17 -04:00
parent 553ef36e9b
commit f049f738da
3 changed files with 28 additions and 11 deletions

5
conf/init/runmigration.sh Executable file
View file

@ -0,0 +1,5 @@
#! /bin/bash
set -e
# Run the database migration
PYTHONPATH=. venv/bin/alembic upgrade head