zulip/scripts
Alex Vandiver 47e622f5a5 run_hooks: Pass down, and respect, --from-git argument.
The refactoring in 4e28e1d3ff incorrectly switched a check for
`if args.from_git` into `if NEW_ZULIP_MERGE_BASE`, which is
incorrect -- the merge-base is always defined, it may just match the
version.  This led to errors when installing from tarball, without a
git repo.

Since the run_hooks command was already set up to take a `--from-git`
argument, but was ignoring it, pass down that flag from
upgrade-zulip-stage-3 when necessary, and swap the run_hooks logic
back to basing the version-resolution logic on that flag.
2025-03-04 13:18:50 -08:00
..
lib run_hooks: Pass down, and respect, --from-git argument. 2025-03-04 13:18:50 -08:00
nagios ruff: Fix PLC0206 Extracting value from dictionary without calling .items(). 2024-12-21 21:06:53 -08:00
setup kandra: Update Teleport version. 2025-02-21 10:16:33 -08:00
__init__.py
get-django-setting
log-search requirements: Upgrade Python requirements. 2024-11-19 11:09:34 -08:00
purge-old-deployments ruff: Partially reformat Python with Ruff 0.9 (2025 style). 2025-01-14 09:42:16 -08:00
README.md docs: Apply bullet style changes from Prettier. 2021-09-08 12:06:24 -07:00
refresh-sharding-and-restart sharding: Configure Tornado sharding with nginx map. 2022-09-15 16:07:50 -07:00
reload-clients reload-clients: Log how many reload events were actually sent. 2024-03-01 09:31:20 -08:00
restart-server restart-server: Add a --only-django for rolling Django restarts. 2024-10-08 12:53:21 -07:00
start-server
stop-server upload: Use tusd for resumable, larger uploads. 2024-09-19 11:37:29 -07:00
upgrade-zulip
upgrade-zulip-from-git
zulip-puppet-apply ruff: Fix SIM115 Use a context manager for opening files. 2024-10-20 18:16:27 -07:00

This directory contains scripts that:

  • Generally do not require access to Django or the database (those are "management commands"), and thus are suitable to run operationally.

  • Are useful for managing a production deployment of Zulip (many are also used in a Zulip development environment, though development-only scripts live in tools/).

For more details, see https://zulip.readthedocs.io/en/latest/overview/directory-structure.html.