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:
parent
6bf38337fd
commit
6a479055a0
1 changed files with 7 additions and 1 deletions
|
@ -11,7 +11,13 @@ docker exec symposion ./manage.py migrate
|
||||||
docker exec symposion ./manage.py loaddata ./fixtures/*.json
|
docker exec symposion ./manage.py loaddata ./fixtures/*.json
|
||||||
docker exec symposion ./manage.py populate_inventory
|
docker exec symposion ./manage.py populate_inventory
|
||||||
docker exec symposion ./manage.py create_review_permissions
|
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
|
set +x
|
||||||
echo "Now you can log into http://localhost:28000/admin"
|
echo "Now you can log into http://localhost:28000/admin"
|
||||||
|
|
Loading…
Reference in a new issue