Skip to content

Commit

Permalink
Add a message about migrations not running
Browse files Browse the repository at this point in the history
  • Loading branch information
rogeruiz committed Jan 31, 2018
1 parent ef859f7 commit 07016fa
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions bin/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@ cd tock
if [[ -v CF_INSTANCE_INDEX && $CF_INSTANCE_INDEX == 0 ]]
then
python manage.py migrate --settings=tock.settings.production --noinput
else
echo "Migrations did not run."
if [[ -v CF_INSTANCE_INDEX ]]
then
echo "CF Instance Index is ${CF_INSTANCE_INDEX}."
fi
fi

python manage.py collectstatic --settings=tock.settings.production --noinput
Expand Down

0 comments on commit 07016fa

Please sign in to comment.