More transparent support for symposion-fixtures dir

symposion-fixtures being a really crappy name for a folder that has
some utility stuff for helping populate a site with dummy data
This commit is contained in:
James Polley 2017-09-17 13:54:27 +10:00
parent 6bf38337fd
commit 6a479055a0

View file

@ -11,7 +11,13 @@ docker exec symposion ./manage.py migrate
docker exec symposion ./manage.py loaddata ./fixtures/*.json
docker exec symposion ./manage.py populate_inventory
docker exec symposion ./manage.py create_review_permissions
docker exec -it symposion ./manage.py createsuperuser --username root --email root@example.com
if [ -e ./symposion-fixtures ]; then
pushd ./symposion-fixtures
./load_data_local.sh
popd
else
docker exec -it symposion ./manage.py createsuperuser --username root --email root@example.com
fi
set +x
echo "Now you can log into http://localhost:28000/admin"