2012-12-14 23:38:19 +01:00
|
|
|
#!/bin/sh -xe
|
2012-10-30 21:11:37 +01:00
|
|
|
|
2014-01-30 23:40:37 +01:00
|
|
|
psql -h localhost postgres zulip <<EOF
|
|
|
|
DROP DATABASE IF EXISTS zulip;
|
|
|
|
CREATE DATABASE zulip TEMPLATE zulip_base;
|
|
|
|
EOF
|
2012-10-30 21:11:37 +01:00
|
|
|
|
2015-08-21 01:01:16 +02:00
|
|
|
python manage.py migrate --noinput
|
2013-03-11 16:23:34 +01:00
|
|
|
python manage.py createcachetable third_party_api_results
|
2013-07-08 17:51:49 +02:00
|
|
|
python manage.py populate_db -n100 --threads=1
|
2013-08-07 17:36:46 +02:00
|
|
|
# Ensure that the local user's API key is synced from ~/.zuliprc
|
2015-06-10 20:28:02 +02:00
|
|
|
|
|
|
|
if [ -e ~/.zuliprc ]; then
|
|
|
|
python manage.py sync_api_key
|
|
|
|
fi
|
|
|
|
|