mirror of
https://github.com/zulip/zulip.git
synced 2025-11-02 13:03:29 +00:00
This commit must be simultaneously deployed on both staging and prod0. It also requires completely taking down the app. To deploy these changes, do: * check out this commit at /root/zulip on postgres0, postgres1, staging, and prod0 * stop the process_fts_updates job on postgres0 and postgres1 * stop the app on staging and prod0 * do a puppet apply on postgres0, postgres1, staging, and prod0 * move the new client certificates into place on staging and app * move the new server certificates into place on postgres0 and postgres1 * reload the database config on postgres0 and postgres1 (this might actually require a restart) * run tools/migrate-db on postgres0 as root * do a deploy through this commit on staging and prod0 * start the process_fts_updates job on postgres0 and postgres1 * do a puppet apply on nagios (imported from commit 819bdd14326c1425e2d3041a491a8ca3b9716506)
11 lines
357 B
Bash
Executable File
11 lines
357 B
Bash
Executable File
#!/bin/sh -xe
|
|
|
|
echo "DROP SCHEMA zulip CASCADE; CREATE SCHEMA zulip;" | python manage.py dbshell
|
|
|
|
python manage.py syncdb --noinput
|
|
python manage.py migrate
|
|
python manage.py createcachetable third_party_api_results
|
|
python manage.py populate_db -n100 --threads=1
|
|
# Ensure that the local user's API key is synced from ~/.zuliprc
|
|
python manage.py sync_api_key
|