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