aboutsummaryrefslogtreecommitdiffstats
path: root/utility/trunc_and_populate.sh
blob: 1e319a2f7a151e978a7a357a4ec705daad54ac50 (plain) (blame)
1
2
3
4
5
6
7
8
9
#!/usr/bin/env bash

echo "Truncating the database."
psql -U postgres -a -f /home/lemon/code/python/ctrack/utility/truncate_script.sql ctrack

sleep 1

echo "Populating the database with test data."
python manage.py populate_db