start.sh: make start.sh run migrations
This commit is contained in:
parent
d81c6d1011
commit
fe4559e01c
6
start.sh
6
start.sh
|
@ -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
|
||||
|
|
Reference in New Issue