mirror of
https://github.com/zulip/zulip.git
synced 2025-11-01 12:33:40 +00:00
upgrade-zulip: Prevent restarting only Django into inconsistent caching.
This commit is contained in:
committed by
Tim Abbott
parent
a1ac49582b
commit
72f667fb31
@@ -96,6 +96,13 @@ if args.skip_restart:
|
||||
if not args.skip_puppet and args.less_graceful:
|
||||
logging.warning("Ignored --less-graceful; all upgrades without --skip-puppet are ungraceful.")
|
||||
|
||||
if args.only_django:
|
||||
logging.error(
|
||||
"Only restarting Django into a new deployment leads to inconsistent caches "
|
||||
"with Tornado; use --skip-client-reloads instead."
|
||||
)
|
||||
sys.exit(1)
|
||||
|
||||
deploy_path = args.deploy_path
|
||||
os.chdir(deploy_path)
|
||||
|
||||
|
Reference in New Issue
Block a user