From 6a479055a0299f387d091b455fc3aad783f37721 Mon Sep 17 00:00:00 2001 From: James Polley Date: Sun, 17 Sep 2017 13:54:27 +1000 Subject: [PATCH] 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 --- make_dev_container.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/make_dev_container.sh b/make_dev_container.sh index d53c7eb2..6a057663 100755 --- a/make_dev_container.sh +++ b/make_dev_container.sh @@ -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"