start.sh: make start.sh run migrations

This commit is contained in:
Benjamin Dauvergne 2014-05-26 23:16:34 +02:00
parent d81c6d1011
commit fe4559e01c
1 changed files with 4 additions and 2 deletions

View File

@ -24,11 +24,13 @@ pip install --upgrade pyOpenSSL ndg-httpsclient requests pyasn1
sed -i 's/^MAX = 64/MAX = 200/' $VENV/lib/python*/site-packages/ndg/httpsclient/subj_alt_name.py
pip install --upgrade --process-dependency-links -r requirements.txt
if [ ! -f $PROJECT.db ]; then
./$CTL syncdb --all
./$CTL migrate --fake
./$CTL syncdb --migrate --noinput --no-initial-data
if [ -f load-base-data.sh ]; then
./load-base-data.sh
fi
if [ "$1" != "norun" ]; then
./$CTL createsuperuser
fi
fi
if [ "$1" != "norun" ]; then
export DEBUG=1