From e20afcf33bac3d1aadeaf37358640513219c2b07 Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Wed, 4 Mar 2020 21:05:24 +0000 Subject: added an all-in-one truncate and populate script and better population code --- utility/trunc_and_populate.sh | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 utility/trunc_and_populate.sh (limited to 'utility') diff --git a/utility/trunc_and_populate.sh b/utility/trunc_and_populate.sh new file mode 100755 index 0000000..8ac3a4f --- /dev/null +++ b/utility/trunc_and_populate.sh @@ -0,0 +1,9 @@ +#!/usr/bin/env bash + +echo "Truncating the database." +sudo -u postgres psql -f utility/truncate_script.sql ctrack + +sleep 1 + +echo "Populating the database with test data." +python manage.py populate_db 20 -- cgit v1.2.3