start.sh: apply migration as they work now, fix django version requirement string
This commit is contained in:
parent
fda9426fed
commit
7728257b51
5
start.sh
5
start.sh
|
@ -15,11 +15,10 @@ if [ "$VIRTUAL_ENV" = "" ]; then
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
easy_install -U pip distribute
|
easy_install -U pip distribute
|
||||||
pip install -U django>1.5.0,<1.6
|
pip install -U 'django>1.5.0,<1.6'
|
||||||
pip install -U -r requirements.txt
|
pip install -U -r requirements.txt
|
||||||
if [ ! -f $PROJECT.db ]; then
|
if [ ! -f $PROJECT.db ]; then
|
||||||
$CTL syncdb --all --noinput
|
$CTL syncdb --migrate --noinput
|
||||||
$CTL migrate --fake
|
|
||||||
$BASE/load-base-data.sh
|
$BASE/load-base-data.sh
|
||||||
fi
|
fi
|
||||||
$CTL runserver
|
$CTL runserver
|
||||||
|
|
Loading…
Reference in New Issue