aboutsummaryrefslogtreecommitdiffstats
path: root/utility/trunc_and_populate.sh
blob: 8ac3a4f052840eee057b80ce63dd8bb290f7aab1 (plain) (blame)
1
2
3
4
5
6
7
8
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