2013-11-13 05:38:54 +01:00
|
|
|
#!/bin/bash -xe
|
|
|
|
|
|
|
|
# Change to root directory of the checkout that we're running from
|
|
|
|
cd $(dirname $0)/../..
|
2013-11-10 17:18:24 +01:00
|
|
|
|
2013-11-13 18:06:53 +01:00
|
|
|
psql <<EOF
|
|
|
|
DROP SCHEMA zulip CASCADE;
|
|
|
|
DROP SCHEMA public CASCADE;
|
|
|
|
CREATE SCHEMA zulip;
|
|
|
|
EOF
|
2013-11-10 17:18:24 +01:00
|
|
|
|
2013-11-13 05:38:54 +01:00
|
|
|
python manage.py checkconfig
|
|
|
|
|
2013-11-10 17:18:24 +01:00
|
|
|
python manage.py syncdb --noinput
|
|
|
|
python manage.py migrate
|
|
|
|
python manage.py createcachetable third_party_api_results
|
2013-11-12 18:14:51 +01:00
|
|
|
python manage.py initialize_enterprise_db
|
2013-11-13 05:38:54 +01:00
|
|
|
|
|
|
|
supervisorctl restart all
|