Files
zulip/scripts/setup/initialize-database
Tim Abbott 6bcd5a7ffc Update installation instructions to include configuring the app.
(imported from commit 89395815c32416ec0636efcff12eb76f5d890bbd)
2013-11-13 12:02:50 -05:00

16 lines
407 B
Bash
Executable File

#!/bin/bash -xe
# Change to root directory of the checkout that we're running from
cd $(dirname $0)/../..
echo "DROP SCHEMA zulip CASCADE; CREATE SCHEMA zulip;" | python manage.py dbshell
python manage.py checkconfig
python manage.py syncdb --noinput
python manage.py migrate
python manage.py createcachetable third_party_api_results
python manage.py initialize_enterprise_db
supervisorctl restart all