Smallfix: Added some echoes and a command to remove the search index

remotes/origin/enhancement/email-actions
David Barragán Merino 2013-09-30 12:38:07 +02:00
parent 32a8b3d805
commit 775cfb2933
1 changed files with 11 additions and 0 deletions

View File

@ -1,12 +1,23 @@
#!/bin/bash
# For postgresql
echo "-> Remove greenmine DB"
dropdb greenmine
echo "-> Create greenmine DB"
createdb greenmine
echo "-> Remove the search index"
rm -rf greenmine/search/index/*
echo "-> Run syncdb"
python manage.py syncdb --migrate --noinput --traceback
echo "-> Load initial user"
python manage.py loaddata initial_user --traceback
echo "-> Load initial roles"
python manage.py loaddata initial_role --traceback
echo "-> Generate sample data"
python manage.py sample_data --traceback
echo "-> Generate initial versions of objects"
python manage.py createinitialrevisions --traceback